projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad1b4f
)
Warning in scanf string typing
72/23272/1
author
Toralf Förster
<toralf.foerster@gmx.de>
Sun, 27 Apr 2014 17:33:34 +0000
(19:33 +0200)
committer
Rafal Krypa
<r.krypa@samsung.com>
Fri, 20 Jun 2014 15:18:00 +0000
(17:18 +0200)
This fixes a warning about the mismatch of types between
the declared unsigned and integer.
Change-Id: I6ad55d04b096092ae557ff0abf4e6bd87faab806
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
security/smack/smackfs.c
patch
|
blob
|
history
diff --git
a/security/smack/smackfs.c
b/security/smack/smackfs.c
index 177d878753940bfe2e478903598068b1d06bce76..32b248820840e76b7db365730f12a2f9eb7b29d0 100644
(file)
--- 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",