aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorrpjday <rpjday@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-01 13:08:46 +0000
committerrpjday <rpjday@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-01 13:08:46 +0000
commita7719dadd888f13b8153fd442a71e4051eaaee99 (patch)
tree7cbdeded060f86cefc4edd006c2538c2a2a4ea97 /coreutils
parentea53f07609c70d06a50e076acd53f74420ced836 (diff)
downloadbusybox-w32-a7719dadd888f13b8153fd442a71e4051eaaee99.tar.gz
busybox-w32-a7719dadd888f13b8153fd442a71e4051eaaee99.tar.bz2
busybox-w32-a7719dadd888f13b8153fd442a71e4051eaaee99.zip
Remove all usage of the "register" storage class specifier.
git-svn-id: svn://busybox.net/trunk/busybox@15568 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/echo.c2
-rw-r--r--coreutils/od.c2
-rw-r--r--coreutils/test.c2
-rw-r--r--coreutils/tr.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c
index a673bb07a..d278c1143 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -71,7 +71,7 @@ int bb_echo(int ATTRIBUTE_UNUSED argc, char **argv)
71just_echo: 71just_echo:
72#endif 72#endif
73 while (*argv) { 73 while (*argv) {
74 register int c; 74 int c;
75 75
76 while ((c = *(*argv)++)) { 76 while ((c = *(*argv)++)) {
77 if (c == eflag) { /* Check for escape seq. */ 77 if (c == eflag) { /* Check for escape seq. */
diff --git a/coreutils/od.c b/coreutils/od.c
index b70cb85e2..13f91eec7 100644
--- a/coreutils/od.c
+++ b/coreutils/od.c
@@ -35,7 +35,7 @@
35static void 35static void
36odoffset(int argc, char ***argvp) 36odoffset(int argc, char ***argvp)
37{ 37{
38 register char *num, *p; 38 char *num, *p;
39 int base; 39 int base;
40 char *end; 40 char *end;
41 41
diff --git a/coreutils/test.c b/coreutils/test.c
index ab3793627..bbc802283 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -554,7 +554,7 @@ static void initialize_group_array(void)
554/* Return non-zero if GID is one that we have in our groups list. */ 554/* Return non-zero if GID is one that we have in our groups list. */
555static int is_a_group_member(gid_t gid) 555static int is_a_group_member(gid_t gid)
556{ 556{
557 register int i; 557 int i;
558 558
559 /* Short-circuit if possible, maybe saving a call to getgroups(). */ 559 /* Short-circuit if possible, maybe saving a call to getgroups(). */
560 if (gid == getgid() || gid == getegid()) 560 if (gid == getgid() || gid == getegid())
diff --git a/coreutils/tr.c b/coreutils/tr.c
index 32f6f5966..6eb86750d 100644
--- a/coreutils/tr.c
+++ b/coreutils/tr.c
@@ -178,7 +178,7 @@ static unsigned int expand(const char *arg, char *buffer)
178 178
179static int complement(char *buffer, int buffer_len) 179static int complement(char *buffer, int buffer_len)
180{ 180{
181 register short i, j, ix; 181 short i, j, ix;
182 char conv[ASCII + 2]; 182 char conv[ASCII + 2];
183 183
184 ix = 0; 184 ix = 0;
@@ -195,7 +195,7 @@ static int complement(char *buffer, int buffer_len)
195 195
196int tr_main(int argc, char **argv) 196int tr_main(int argc, char **argv)
197{ 197{
198 register unsigned char *ptr; 198 unsigned char *ptr;
199 int output_length=0, input_length; 199 int output_length=0, input_length;
200 int idx = 1; 200 int idx = 1;
201 int i; 201 int i;