changeset 27363:9f57d78c88c9

* 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 2c8e1815b4a3
children d1f9dd746a7e
files ChangeLog lib/idcache.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 20 09:25:38 2006 +0000
+++ b/ChangeLog	Mon Nov 20 09:30:51 2006 +0000
@@ -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	Mon Nov 20 09:25:38 2006 +0000
+++ b/lib/idcache.c	Mon Nov 20 09:30:51 2006 +0000
@@ -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)