From: nekral-guest Date: Thu, 30 Apr 2009 21:44:35 +0000 (+0000) Subject: * lib/getulong.c: Added splint annotations. X-Git-Tag: 4.1.4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4da0573bf7e5a10cf6924cafacc1b01704440105;p=thirdparty%2Fshadow.git * lib/getulong.c: Added splint annotations. --- diff --git a/ChangeLog b/ChangeLog index 1e1bcad0b..4f4e40c48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-30 Nicolas François + + * lib/getulong.c: Added splint annotations. + 2009-04-30 Nicolas François * src/newgrp.c, src/chfn.c, src/groupmems.c, src/usermod.c, diff --git a/lib/getulong.c b/lib/getulong.c index 3cd3d0a2c..61579cae8 100644 --- a/lib/getulong.c +++ b/lib/getulong.c @@ -52,7 +52,10 @@ int getulong (const char *numstr, /*@out@*/unsigned long int *result) if ( ('\0' == *numstr) || ('\0' != *endptr) || (ERANGE == errno) - || (val != (unsigned long int)val)) { + /*@+ignoresigns@*/ + || (val != (unsigned long int)val) + /*@=ignoresigns@*/ + ) { return 0; } diff --git a/src/pwunconv.c b/src/pwunconv.c index 5825f9dfb..7bc495653 100644 --- a/src/pwunconv.c +++ b/src/pwunconv.c @@ -44,6 +44,7 @@ #include "prototypes.h" #include "pwio.h" #include "shadowio.h" + /* * Global variables */