Mercurial > hg > octave-nkf > gnulib-hg
changeset 7672:d2c7e0fe0b94
* lib/idcache.c (getuser): Remove all uses of the register keyword.
(getuidbyname, getgroup, getgidbyname): Likewise.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 20 Nov 2006 09:30:51 +0000 |
parents | 0e4c9d56db95 |
children | a37b8b182d49 |
files | ChangeLog lib/idcache.c |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-11-20 Jim Meyering <jim@meyering.net> + * lib/idcache.c (getuser): Remove all uses of the register keyword. + (getuidbyname, getgroup, getgidbyname): Likewise. + Use cleaner syntax: NULL rather than 0. * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
--- a/lib/idcache.c +++ b/lib/idcache.c @@ -54,7 +54,7 @@ char * getuser (uid_t uid) { - register struct userid *tail; + struct userid *tail; struct passwd *pwent; for (tail = user_alist; tail; tail = tail->next) @@ -80,7 +80,7 @@ uid_t * getuidbyname (const char *user) { - register struct userid *tail; + struct userid *tail; struct passwd *pwent; for (tail = user_alist; tail; tail = tail->next) @@ -130,7 +130,7 @@ char * getgroup (gid_t gid) { - register struct userid *tail; + struct userid *tail; struct group *grent; for (tail = group_alist; tail; tail = tail->next) @@ -156,7 +156,7 @@ gid_t * getgidbyname (const char *group) { - register struct userid *tail; + struct userid *tail; struct group *grent; for (tail = group_alist; tail; tail = tail->next)