summaryrefslogtreecommitdiffstats
path: root/security/smack/smackfs.c
diff options
context:
space:
mode:
authorToralf Förster <toralf.foerster@gmx.de>2014-04-27 19:33:34 +0200
committerCasey Schaufler <casey@schaufler-ca.com>2014-05-06 20:32:53 +0200
commitec554fa75ec94dcf47e52db9551755679c10235b (patch)
tree41be1a9e7424e6f2e9817578e06d359ec820d59d /security/smack/smackfs.c
parentSmack: Label cgroup files for systemd (diff)
downloadlinux-ec554fa75ec94dcf47e52db9551755679c10235b.tar.xz
linux-ec554fa75ec94dcf47e52db9551755679c10235b.zip
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>
Diffstat (limited to 'security/smack/smackfs.c')
-rw-r--r--security/smack/smackfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c
index 177d87875394..32b248820840 100644
--- a/security/smack/smackfs.c
+++ b/security/smack/smackfs.c
@@ -1193,7 +1193,7 @@ static ssize_t smk_write_netlbladdr(struct file *file, const char __user *buf,
data[count] = '\0';
- rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%d %s",
+ rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%u %s",
&host[0], &host[1], &host[2], &host[3], &m, smack);
if (rc != 6) {
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd %s",