* libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c,

lib/get_uid.c: Added splint annotations.
This commit is contained in:
nekral-guest 2009-04-30 21:12:33 +00:00
parent a326ffa435
commit c527c0196b
5 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-04-30 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c,
lib/get_uid.c: Added splint annotations.
2009-04-30 Nicolas François <nicolas.francois@centraliens.net>
* lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs.

View File

@ -44,7 +44,7 @@ int get_gid (const char *gidstr, gid_t *gid)
if ( ('\0' == *gidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (gid_t)val)) {
|| (/*@+longintegral@*/val != (gid_t)val)/*@=longintegral@*/) {
return 0;
}

View File

@ -44,7 +44,7 @@ int get_pid (const char *pidstr, pid_t *pid)
if ( ('\0' == *pidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (pid_t)val)) {
|| (/*@+longintegral@*/val != (pid_t)val)/*@=longintegral@*/) {
return 0;
}

View File

@ -44,7 +44,7 @@ int get_uid (const char *uidstr, uid_t *uid)
if ( ('\0' == *uidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (uid_t)val)) {
|| (/*@+longintegral@*/val != (uid_t)val)/*@=longintegral@*/) {
return 0;
}

View File

@ -58,7 +58,7 @@ extern /*@null@*/struct group *getgr_nam_gid (const char *grname)
if ( ('\0' != *grname)
&& ('\0' == *endptr)
&& (ERANGE != errno)
&& (gid == (gid_t)gid)) {
&& (/*@+longintegral@*/gid == (gid_t)gid)/*@=longintegral@*/) {
return xgetgrgid ((gid_t) gid);
}
return xgetgrnam (grname);