summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToralf Förster <toralf.foerster@gmx.de>2014-04-27 19:33:34 +0200
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:23:23 +0100
commit4bcb539d7c6d62a2108248db40cfd52fdffa802c (patch)
tree7a66c95aee77d1260dddb9434f9671c111c3902c
parent2b0e472ba09c9ea000bdb7c7ed59f8a1bd1153ed (diff)
downloadkernel-common-4bcb539d7c6d62a2108248db40cfd52fdffa802c.tar.gz
kernel-common-4bcb539d7c6d62a2108248db40cfd52fdffa802c.tar.bz2
kernel-common-4bcb539d7c6d62a2108248db40cfd52fdffa802c.zip
Warning in scanf string typing
This fixes a warning about the mismatch of types between the declared unsigned and integer. Change-Id: Ie7170fa22c1f641b2990721b44059d399c92ffe6 Signed-off-by: Toralf Förster <toralf.foerster@gmx.de> Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
-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",