* lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c:

Add splint annotations.
This commit is contained in:
nekral-guest
2011-10-18 20:23:33 +00:00
parent edbdb4bf03
commit 704f28df98
5 changed files with 28 additions and 21 deletions

View File

@@ -83,9 +83,9 @@ extern int chown_tree (const char *root,
extern void chown_tty (const struct passwd *);
/* cleanup.c */
typedef void (*cleanup_function) (/*@null@*/void *arg);
void add_cleanup (cleanup_function pcf, /*@null@*/void *arg);
void del_cleanup (cleanup_function pcf);
typedef /*@null@*/void (*cleanup_function) (/*@null@*/void *arg);
void add_cleanup (/*@notnull@*/cleanup_function pcf, /*@null@*/void *arg);
void del_cleanup (/*@notnull@*/cleanup_function pcf);
void do_cleanups (void);
/* cleanup_group.c */
@@ -340,7 +340,7 @@ extern int shell (const char *file, /*@null@*/const char *arg, char *const envp[
/* spawn.c */
extern int run_command (const char *cmd, const char *argv[],
const char *envp[], int *status);
/*@null@*/const char *envp[], /*@out@*/int *status);
/* system.c */
extern int safe_system (const char *command,

View File

@@ -38,8 +38,8 @@
#include "exitcodes.h"
#include "prototypes.h"
int run_command (const char *cmd, const char *argv[], const char *envp[],
int *status)
int run_command (const char *cmd, const char *argv[],
/*@null@*/const char *envp[], /*@out@*/int *status)
{
pid_t pid, wpid;