* lib/idcache.c (getuser): Remove all uses of the register keyword.
authorJim Meyering <jim@meyering.net>
Mon, 20 Nov 2006 09:30:51 +0000 (09:30 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 20 Nov 2006 09:30:51 +0000 (09:30 +0000)
(getuidbyname, getgroup, getgidbyname): Likewise.

ChangeLog
lib/idcache.c

index 9259a13..f1263c6 100644 (file)
--- 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.
 
index 58d8fe6..8e278e7 100644 (file)
@@ -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)