* 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

@@ -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);