[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
idcache.c: syntax-only change
From: |
Jim Meyering |
Subject: |
idcache.c: syntax-only change |
Date: |
Mon, 20 Nov 2006 10:25:56 +0100 |
Use cleaner syntax: NULL rather than 0.
* lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
Index: lib/idcache.c
===================================================================
RCS file: /sources/gnulib/gnulib/lib/idcache.c,v
retrieving revision 1.19
diff -u -r1.19 idcache.c
--- lib/idcache.c 20 Nov 2006 09:10:18 -0000 1.19
+++ lib/idcache.c 20 Nov 2006 09:25:33 -0000
@@ -91,7 +91,7 @@
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__
@@ -118,7 +118,7 @@
tail->next = nouser_alist;
nouser_alist = tail;
- return 0;
+ return NULL;
}
/* Use the same struct as for userids. */
@@ -167,7 +167,7 @@
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__
@@ -194,5 +194,5 @@
tail->next = nogroup_alist;
nogroup_alist = tail;
- return 0;
+ return NULL;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- idcache.c: syntax-only change,
Jim Meyering <=