* lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
+2006-11-20 Jim Meyering <jim@meyering.net>
+
+ Use cleaner syntax: NULL rather than 0.
+ * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
+
2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
* lib/idcache.c: Undo most recent patch, dated 2006-11-06.
for (tail = nouser_alist; tail; tail = tail->next)
/* Avoid a function call for the most common case. */
if (*tail->name == *user && !strcmp (tail->name, user))
- return 0;
+ return NULL;
pwent = getpwnam (user);
#ifdef __DJGPP__
tail->next = nouser_alist;
nouser_alist = tail;
- return 0;
+ return NULL;
}
/* Use the same struct as for userids. */
for (tail = nogroup_alist; tail; tail = tail->next)
/* Avoid a function call for the most common case. */
if (*tail->name == *group && !strcmp (tail->name, group))
- return 0;
+ return NULL;
grent = getgrnam (group);
#ifdef __DJGPP__
tail->next = nogroup_alist;
nogroup_alist = tail;
- return 0;
+ return NULL;
}