From e5a4188fdeb95aa41503ce6d11b43e833958f32f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 20 Nov 2006 09:30:51 +0000 Subject: [PATCH] * lib/idcache.c (getuser): Remove all uses of the register keyword. (getuidbyname, getgroup, getgidbyname): Likewise. --- ChangeLog | 3 +++ lib/idcache.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9259a13b6..f1263c6d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-11-20 Jim Meyering + * 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. diff --git a/lib/idcache.c b/lib/idcache.c index 58d8fe610..8e278e781 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -54,7 +54,7 @@ static struct userid *nouser_alist; 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 @@ getuser (uid_t uid) 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 @@ static struct userid *nogroup_alist; 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 @@ getgroup (gid_t gid) gid_t * getgidbyname (const char *group) { - register struct userid *tail; + struct userid *tail; struct group *grent; for (tail = group_alist; tail; tail = tail->next) -- 2.11.0