diff options
Diffstat (limited to 'shell/ash_test/recho.c')
-rw-r--r-- | shell/ash_test/recho.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/shell/ash_test/recho.c b/shell/ash_test/recho.c index fb48d9c48..42a5feafd 100644 --- a/shell/ash_test/recho.c +++ b/shell/ash_test/recho.c | |||
@@ -29,12 +29,9 @@ | |||
29 | 29 | ||
30 | void strprint(); | 30 | void strprint(); |
31 | 31 | ||
32 | int | 32 | int main(int argc, char **argv) |
33 | main(argc, argv) | ||
34 | int argc; | ||
35 | char **argv; | ||
36 | { | 33 | { |
37 | register int i; | 34 | int i; |
38 | 35 | ||
39 | for (i = 1; i < argc; i++) { | 36 | for (i = 1; i < argc; i++) { |
40 | printf("argv[%d] = <", i); | 37 | printf("argv[%d] = <", i); |
@@ -44,11 +41,9 @@ char **argv; | |||
44 | exit(EXIT_SUCCESS); | 41 | exit(EXIT_SUCCESS); |
45 | } | 42 | } |
46 | 43 | ||
47 | void | 44 | void strprint(char *str) |
48 | strprint(str) | ||
49 | char *str; | ||
50 | { | 45 | { |
51 | register unsigned char *s; | 46 | unsigned char *s; |
52 | 47 | ||
53 | for (s = (unsigned char *)str; s && *s; s++) { | 48 | for (s = (unsigned char *)str; s && *s; s++) { |
54 | if (*s < ' ') { | 49 | if (*s < ' ') { |