Fix an incorrect conversion specifier in the discover_class code.

Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
Eamon Walsh 2009-02-27 18:05:24 -05:00
parent 46d0b2c939
commit b27ff3397d

View file

@ -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 */