* libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,

lib/groupio.h, lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c,
	lib/pwio.c, lib/commonio.c, lib/shadowio.h, lib/pwio.h,
	lib/commonio.h, lib/prototypes.h: Added splint annotations.
This commit is contained in:
nekral-guest
2009-04-22 21:21:14 +00:00
parent aebddca35d
commit 2c0f3ef707
15 changed files with 71 additions and 68 deletions

View File

@@ -49,7 +49,7 @@ static void *passwd_dup (const void *ent)
return __pw_dup (pw);
}
static void passwd_free (void *ent)
static void passwd_free (/*@out@*/ /*@only@*/void *ent)
{
struct passwd *pw = ent;
@@ -108,7 +108,7 @@ int pw_setdbname (const char *filename)
return commonio_setname (&passwd_db, filename);
}
const char *pw_dbname (void)
/*@observer@*/const char *pw_dbname (void)
{
return passwd_db.filename;
}
@@ -170,7 +170,7 @@ int pw_unlock (void)
return commonio_unlock (&passwd_db);
}
struct commonio_entry *__pw_get_head (void)
/*@null@*/struct commonio_entry *__pw_get_head (void)
{
return passwd_db.head;
}