diff options
Diffstat (limited to 'tr.c')
-rw-r--r-- | tr.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -123,19 +123,19 @@ static unsigned int expand(char *arg, register unsigned char *buffer) | |||
123 | 123 | ||
124 | static int complement(unsigned char *buffer, int buffer_len) | 124 | static int complement(unsigned char *buffer, int buffer_len) |
125 | { | 125 | { |
126 | register short i, j, index; | 126 | register short i, j, ix; |
127 | char conv[ASCII + 2]; | 127 | char conv[ASCII + 2]; |
128 | 128 | ||
129 | index = 0; | 129 | ix = 0; |
130 | for (i = 0; i <= ASCII; i++) { | 130 | for (i = 0; i <= ASCII; i++) { |
131 | for (j = 0; j < buffer_len; j++) | 131 | for (j = 0; j < buffer_len; j++) |
132 | if (buffer[j] == i) | 132 | if (buffer[j] == i) |
133 | break; | 133 | break; |
134 | if (j == buffer_len) | 134 | if (j == buffer_len) |
135 | conv[index++] = i & ASCII; | 135 | conv[ix++] = i & ASCII; |
136 | } | 136 | } |
137 | memcpy(buffer, conv, index); | 137 | memcpy(buffer, conv, ix); |
138 | return index; | 138 | return ix; |
139 | } | 139 | } |
140 | 140 | ||
141 | extern int tr_main(int argc, char **argv) | 141 | extern int tr_main(int argc, char **argv) |