summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToralf Förster <toralf.foerster@gmx.de>2014-04-27 19:33:34 +0200
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>2014-12-11 16:53:30 +0900
commite492794699e780a72b90331164ac88b913ec8990 (patch)
tree4c22accf06ccb6ca11e8ca4fc8842fe9647c7760
parent5d51bf42431856ae639d26e2c3fee14c5e90f201 (diff)
downloadrenesas_kernel-e492794699e780a72b90331164ac88b913ec8990.tar.gz
renesas_kernel-e492794699e780a72b90331164ac88b913ec8990.tar.bz2
renesas_kernel-e492794699e780a72b90331164ac88b913ec8990.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> (cherry picked from commit d4648ce67e6243f961aa02fe93295e370deaea0b) Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
-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 177d8787539..32b24882084 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",