diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 06:49:52 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 06:49:52 +0000 |
commit | 3fdc0f38fbfbf12310ed50f573e8da9481ed6214 (patch) | |
tree | 7b840eb074878c454141ce76ba7328f4a8621f1b /tr.c | |
parent | 16119c7c8b5bcc30f0642e8c2b8458db4f0e94ff (diff) | |
download | busybox-w32-3fdc0f38fbfbf12310ed50f573e8da9481ed6214.tar.gz busybox-w32-3fdc0f38fbfbf12310ed50f573e8da9481ed6214.tar.bz2 busybox-w32-3fdc0f38fbfbf12310ed50f573e8da9481ed6214.zip |
More cleanups.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@853 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tr.c')
-rw-r--r-- | tr.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -140,10 +140,10 @@ static unsigned int expand(char *arg, register unsigned char *buffer) | |||
140 | return (buffer - buffer_start); | 140 | return (buffer - buffer_start); |
141 | } | 141 | } |
142 | 142 | ||
143 | static int complement(unsigned char *buffer, unsigned int buffer_len) | 143 | static int complement(unsigned char *buffer, int buffer_len) |
144 | { | 144 | { |
145 | register short i, j, index; | 145 | register short i, j, index; |
146 | unsigned char conv[ASCII + 2]; | 146 | char conv[ASCII + 2]; |
147 | 147 | ||
148 | index = 0; | 148 | index = 0; |
149 | for (i = 0; i <= ASCII; i++) { | 149 | for (i = 0; i <= ASCII; i++) { |
@@ -160,9 +160,9 @@ static int complement(unsigned char *buffer, unsigned int buffer_len) | |||
160 | extern int tr_main(int argc, char **argv) | 160 | extern int tr_main(int argc, char **argv) |
161 | { | 161 | { |
162 | register unsigned char *ptr; | 162 | register unsigned char *ptr; |
163 | unsigned int output_length=0, input_length; | 163 | int output_length=0, input_length; |
164 | int index = 1; | 164 | int index = 1; |
165 | short i; | 165 | int i; |
166 | 166 | ||
167 | if (argc > 1 && argv[index][0] == '-') { | 167 | if (argc > 1 && argv[index][0] == '-') { |
168 | for (ptr = (unsigned char *) &argv[index][1]; *ptr; ptr++) { | 168 | for (ptr = (unsigned char *) &argv[index][1]; *ptr; ptr++) { |