aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/stringrep.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-02-27 18:05:24 -0500
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-02-27 18:07:15 -0500
commitb27ff3397dcef05a4a22343dccf18f3a29b7de90 (patch)
tree5b4a1d6a4d8731817a02a8b9cfe626ea3f922704 /libselinux/src/stringrep.c
parent46d0b2c9398eab7714497336f7111e19d30eb2d9 (diff)
downloadandroid_external_selinux-b27ff3397dcef05a4a22343dccf18f3a29b7de90.tar.gz
android_external_selinux-b27ff3397dcef05a4a22343dccf18f3a29b7de90.tar.bz2
android_external_selinux-b27ff3397dcef05a4a22343dccf18f3a29b7de90.zip
Fix an incorrect conversion specifier in the discover_class code.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
Diffstat (limited to 'libselinux/src/stringrep.c')
-rw-r--r--libselinux/src/stringrep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libselinux/src/stringrep.c b/libselinux/src/stringrep.c
index 19c5bb6c..b3f3120e 100644
--- a/libselinux/src/stringrep.c
+++ b/libselinux/src/stringrep.c
@@ -225,7 +225,7 @@ static struct discover_class_node * discover_class(const char *s)
if (ret < 0)
goto err3;
- if (sscanf(buf, "%u", (unsigned int*)&node->value) != 1)
+ if (sscanf(buf, "%hu", &node->value) != 1)
goto err3;
/* load up permission indicies */