From: Jim Meyering Date: Sun, 6 Mar 2005 16:19:44 +0000 (+0000) Subject: Remove register keyword. X-Git-Tag: CPPI-1_12~1392 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74e3e13b3a19afc2f8573afbad0002060b7e3d4d;p=platform%2Fupstream%2Fcoreutils.git Remove register keyword. --- diff --git a/src/id.c b/src/id.c index b86667e7c..1fe6a807c 100644 --- 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)) diff --git a/src/logname.c b/src/logname.c index 033cbd507..8fd22ca17 100644 --- a/src/logname.c +++ b/src/logname.c @@ -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]; diff --git a/src/printf.c b/src/printf.c index e6c2eaaa8..23db3ce01 100644 --- a/src/printf.c +++ b/src/printf.c @@ -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. */ diff --git a/src/test.c b/src/test.c index 2caebd4de..18dd00eda 100644 --- a/src/test.c +++ b/src/test.c @@ -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'? */ diff --git a/src/whoami.c b/src/whoami.c index 8e01df1e5..286a8d3cd 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -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];