Skip to content

Commit ec554fa

Browse files
toralfcschaufler
authored andcommitted
Warning in scanf string typing
This fixes a warning about the mismatch of types between the declared unsigned and integer. Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
1 parent 36ea735 commit ec554fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/smack/smackfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ static ssize_t smk_write_netlbladdr(struct file *file, const char __user *buf,
11931193

11941194
data[count] = '\0';
11951195

1196-
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%d %s",
1196+
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%u %s",
11971197
&host[0], &host[1], &host[2], &host[3], &m, smack);
11981198
if (rc != 6) {
11991199
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd %s",

0 commit comments

Comments
 (0)