diff --git a/ChangeLog b/ChangeLog index 1e1bcad0..4f4e40c4 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 3cd3d0a2..61579cae 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 5825f9df..7bc49565 100644 --- a/src/pwunconv.c +++ b/src/pwunconv.c @@ -44,6 +44,7 @@ #include "prototypes.h" #include "pwio.h" #include "shadowio.h" + /* * Global variables */