mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
lib/nlattr.c: Fix warning due to incorrect strlen() variable type
strlen() returns a size_t, not an int. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
4c09303dba
commit
7ab35c5d52
@ -374,7 +374,7 @@ EXPORT_SYMBOL(nla_memcmp);
|
||||
*/
|
||||
int nla_strcmp(const struct nlattr *nla, const char *str)
|
||||
{
|
||||
int len = strlen(str);
|
||||
size_t len = strlen(str);
|
||||
char *buf = nla_data(nla);
|
||||
int attrlen = nla_len(nla);
|
||||
int d;
|
||||
|
Loading…
x
Reference in New Issue
Block a user