Remove register keyword.
authorJim Meyering <jim@meyering.net>
Sun, 6 Mar 2005 16:19:44 +0000 (16:19 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 6 Mar 2005 16:19:44 +0000 (16:19 +0000)
src/id.c
src/logname.c
src/printf.c
src/test.c
src/whoami.c

index b86667e..1fe6a80 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -1,5 +1,5 @@
 /* id -- print real and effective UIDs and GIDs
-   Copyright (C) 1989-2004 Free Software Foundation, Inc.
+   Copyright (C) 1989-2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -311,7 +311,7 @@ print_group_list (const char *username)
   {
     int n_groups;
     GETGROUPS_T *groups;
-    register int i;
+    int i;
 
     if (! xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1),
                      &n_groups, &groups))
@@ -369,7 +369,7 @@ print_full_info (const char *username)
   {
     int n_groups;
     GETGROUPS_T *groups;
-    register int i;
+    int i;
 
     if (! xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1),
                      &n_groups, &groups))
index 033cbd5..8fd22ca 100644 (file)
@@ -1,5 +1,5 @@
 /* logname -- print user's login name
-   Copyright (C) 1990-1997, 1999-2004 Free Software Foundation, Inc.
+   Copyright (C) 1990-1997, 1999-2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ Print the name of the current user.\n\
 int
 main (int argc, char **argv)
 {
-  register char *cp;
+  char *cp;
 
   initialize_main (&argc, &argv);
   program_name = argv[0];
index e6c2eaa..23db3ce 100644 (file)
@@ -1,5 +1,5 @@
 /* printf - format and print data
-   Copyright (C) 1990-2004 Free Software Foundation, Inc.
+   Copyright (C) 1990-2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -240,7 +240,7 @@ print_esc_char (char c)
 static int
 print_esc (const char *escstart, bool octal_0)
 {
-  register const char *p = escstart + 1;
+  const char *p = escstart + 1;
   int esc_value = 0;           /* Value of \nnn escape. */
   int esc_length;              /* Length of \nnn escape. */
 
index 2caebd4..18dd00e 100644 (file)
@@ -144,7 +144,7 @@ integer_expected_error (char const *pch)
    valid number.  Stuff the converted number into RESULT if RESULT is
    not null.  */
 static bool
-is_int (register char *string, intmax_t *result)
+is_int (char *string, intmax_t *result)
 {
   int sign;
   intmax_t value;
@@ -306,7 +306,7 @@ term (void)
 static bool
 binary_operator (bool l_is_l)
 {
-  register int op;
+  int op;
   struct stat stat_buf, stat_spare;
   intmax_t l, r;
   /* Is the right integer expression of the form '-l string'? */
index 8e01df1..286a8d3 100644 (file)
@@ -1,6 +1,6 @@
 /* whoami -- print effective userid
 
-   Copyright (C) 89,90, 1991-1997, 1999-2002, 2004 Free Software
+   Copyright (C) 89,90, 1991-1997, 1999-2002, 2004, 2005 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -63,8 +63,8 @@ Same as id -un.\n\
 int
 main (int argc, char **argv)
 {
-  register struct passwd *pw;
-  register uid_t uid;
+  struct passwd *pw;
+  uid_t uid;
 
   initialize_main (&argc, &argv);
   program_name = argv[0];