if (!db->isopen) {
errno = EINVAL;
- return 0;
+ return NULL;
}
if (NULL == db->cursor) {
db->cursor = db->head;
while (cnt > 0) {
if (fgets (cp, cnt, f) != cp) {
if (cp == buf) {
- return 0;
+ return NULL;
} else {
break;
}
if (NULL == ports) {
errno = saveerr;
- return 0;
+ return NULL;
}
/*
cp = field;
if ('\0' == *cp) {
- port.pt_times = 0;
+ port.pt_times = NULL;
return &port;
}
break;
default:
errno = EINVAL;
- return 0;
+ return NULL;
}
}
* ever let them login.
*/
- if (0 == pp->pt_times) {
+ if (NULL == pp->pt_times) {
return false;
}
int n;
int execute_result = 0;
- scanlist = scandir(directory, &namelist, 0, alphasort);
+ scanlist = scandir(directory, &namelist, NULL, alphasort);
if (scanlist<=0) {
return (0);
}
fprintf (shadow_logfd,
"%s: Too long passwd entry encountered, file corruption?\n",
shadow_progname);
- return 0; /* fail if too long */
+ return NULL; /* fail if too long */
}
strcpy (pwdbuf, buf);
if (strcmp (gr->gr_passwd, SHADOW_PASSWD_STRING) != 0)
sgent.sg_passwd = gr->gr_passwd;
} else {
- static char *empty = 0;
+ static char *empty = NULL;
/* add new shadow group entry */
bzero(&sgent, sizeof sgent);
while ( ((tok = strtok (NULL, sep)) != NULL)
&& (strcasecmp (tok, "EXCEPT") != 0))
/* VOID */ ;
- if (tok == 0 || !list_match (NULL, item, match_fn)) {
+ if (tok == NULL || !list_match(NULL, item, match_fn)) {
return (match);
}
}
vipwexit (fileedit, 1, 1);
}
if (st1.st_mtime == st2.st_mtime) {
- vipwexit (0, 0, 0);
+ vipwexit(NULL, 0, 0);
}
#ifdef WITH_SELINUX
/* unset the fscreatecon */
free(to_rename);
}
#endif /* WITH_TCB */
- vipwexit (0, 0, 1);
+ vipwexit(NULL, 0, 1);
}
#ifdef WITH_TCB