* 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:
@@ -160,7 +160,7 @@ int expire (const struct passwd *pw, const struct spwd *sp)
|
||||
* to expire and warns the user of the pending password expiration.
|
||||
*/
|
||||
|
||||
void agecheck (const struct spwd *sp)
|
||||
void agecheck (/*@null@*/const struct spwd *sp)
|
||||
{
|
||||
long now = (long) time ((time_t *) 0) / SCALE;
|
||||
long remain;
|
||||
|
@@ -53,7 +53,7 @@ extern size_t newenvc;
|
||||
* the file. If all that fails, give up in disgust ...
|
||||
*/
|
||||
|
||||
int shell (const char *file, const char *arg, char *const envp[])
|
||||
int shell (const char *file, /*@null@*/const char *arg, char *const envp[])
|
||||
{
|
||||
char arg0[1024];
|
||||
int err;
|
||||
|
@@ -98,7 +98,7 @@ static bool is_my_tty (const char *tty)
|
||||
*
|
||||
* Return NULL if no entries exist in utmp for the current process.
|
||||
*/
|
||||
/*@null@*//*@only@*/struct utmp *get_current_utmp (void)
|
||||
/*@null@*/ /*@only@*/struct utmp *get_current_utmp (void)
|
||||
{
|
||||
struct utmp *ut;
|
||||
struct utmp *ret = NULL;
|
||||
|
Reference in New Issue
Block a user