aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
author"Robert P. J. Day" <rpjday@mindspring.com>2006-07-01 13:08:46 +0000
committer"Robert P. J. Day" <rpjday@mindspring.com>2006-07-01 13:08:46 +0000
commit68229837ff1e690190d51b74b281cfe999220e6d (patch)
tree7cbdeded060f86cefc4edd006c2538c2a2a4ea97 /coreutils
parentf350160963c4412bb76f3e8cca669529fdde81d1 (diff)
downloadbusybox-68229837ff1e690190d51b74b281cfe999220e6d.tar.gz
Remove all usage of the "register" storage class specifier.
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)
just_echo:
#endif
while (*argv) {
- register int c;
+ int c;
while ((c = *(*argv)++)) {
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 @@
static void
odoffset(int argc, char ***argvp)
{
- register char *num, *p;
+ char *num, *p;
int base;
char *end;
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)
/* Return non-zero if GID is one that we have in our groups list. */
static int is_a_group_member(gid_t gid)
{
- register int i;
+ int i;
/* Short-circuit if possible, maybe saving a call to getgroups(). */
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)
static int complement(char *buffer, int buffer_len)
{
- register short i, j, ix;
+ short i, j, ix;
char conv[ASCII + 2];
ix = 0;
@@ -195,7 +195,7 @@ static int complement(char *buffer, int buffer_len)
int tr_main(int argc, char **argv)
{
- register unsigned char *ptr;
+ unsigned char *ptr;
int output_length=0, input_length;
int idx = 1;
int i;