diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/dc.c | 2 | ||||
-rw-r--r-- | miscutils/dutmp.c | 4 | ||||
-rw-r--r-- | miscutils/makedevs.c | 4 | ||||
-rw-r--r-- | miscutils/mktemp.c | 2 | ||||
-rw-r--r-- | miscutils/mt.c | 4 | ||||
-rw-r--r-- | miscutils/readlink.c | 2 | ||||
-rw-r--r-- | miscutils/update.c | 2 | ||||
-rw-r--r-- | miscutils/watchdog.c | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c index 122673a95..1e34574ed 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c | |||
@@ -169,7 +169,7 @@ int dc_main(int argc, char **argv) | |||
169 | } | 169 | } |
170 | } else { | 170 | } else { |
171 | if (*argv[1]=='-') | 171 | if (*argv[1]=='-') |
172 | usage(dc_usage); | 172 | show_usage(); |
173 | while (argc >= 2) { | 173 | while (argc >= 2) { |
174 | stack_machine(argv[1]); | 174 | stack_machine(argv[1]); |
175 | argv++; | 175 | argv++; |
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index 7e1d2eed7..2e6b3c056 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c | |||
@@ -33,7 +33,7 @@ extern int dutmp_main(int argc, char **argv) | |||
33 | if (argc<2) { | 33 | if (argc<2) { |
34 | file = fileno(stdin); | 34 | file = fileno(stdin); |
35 | } else if (*argv[1] == '-' ) { | 35 | } else if (*argv[1] == '-' ) { |
36 | usage(dutmp_usage); | 36 | show_usage(); |
37 | } else { | 37 | } else { |
38 | file = open(argv[1], O_RDONLY); | 38 | file = open(argv[1], O_RDONLY); |
39 | if (file < 0) { | 39 | if (file < 0) { |
@@ -45,7 +45,7 @@ extern int dutmp_main(int argc, char **argv) | |||
45 | * fact the stupid libc doesn't have a reliable #define to announce that libc5 | 45 | * fact the stupid libc doesn't have a reliable #define to announce that libc5 |
46 | * is being used. sigh. | 46 | * is being used. sigh. |
47 | */ | 47 | */ |
48 | #if ! defined __GLIBC__ | 48 | #if ! defined __GLIBC__ || defined __UCLIBC__ |
49 | while (read(file, (void*)&ut, sizeof(struct utmp))) { | 49 | while (read(file, (void*)&ut, sizeof(struct utmp))) { |
50 | printf("%d|%d|%s|%s|%s|%s|%s|%lx\n", | 50 | printf("%d|%d|%s|%s|%s|%s|%s|%lx\n", |
51 | ut.ut_type, ut.ut_pid, ut.ut_line, | 51 | ut.ut_type, ut.ut_pid, ut.ut_line, |
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index f979871bd..eed3968c8 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -32,7 +32,7 @@ int makedevs_main(int argc, char **argv) | |||
32 | char buf[255]; | 32 | char buf[255]; |
33 | 33 | ||
34 | if (argc < 7 || *argv[1]=='-') | 34 | if (argc < 7 || *argv[1]=='-') |
35 | usage(makedevs_usage); | 35 | show_usage(); |
36 | 36 | ||
37 | switch (type[0]) { | 37 | switch (type[0]) { |
38 | case 'c': | 38 | case 'c': |
@@ -45,7 +45,7 @@ int makedevs_main(int argc, char **argv) | |||
45 | mode = S_IFIFO; | 45 | mode = S_IFIFO; |
46 | break; | 46 | break; |
47 | default: | 47 | default: |
48 | usage(makedevs_usage); | 48 | show_usage(); |
49 | } | 49 | } |
50 | mode |= 0660; | 50 | mode |= 0660; |
51 | 51 | ||
diff --git a/miscutils/mktemp.c b/miscutils/mktemp.c index 3b9f2b22c..b3522026e 100644 --- a/miscutils/mktemp.c +++ b/miscutils/mktemp.c | |||
@@ -31,7 +31,7 @@ | |||
31 | extern int mktemp_main(int argc, char **argv) | 31 | extern int mktemp_main(int argc, char **argv) |
32 | { | 32 | { |
33 | if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q"))) | 33 | if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q"))) |
34 | usage(mktemp_usage); | 34 | show_usage(); |
35 | if(mkstemp(argv[argc-1]) < 0) | 35 | if(mkstemp(argv[argc-1]) < 0) |
36 | return EXIT_FAILURE; | 36 | return EXIT_FAILURE; |
37 | (void) puts(argv[argc-1]); | 37 | (void) puts(argv[argc-1]); |
diff --git a/miscutils/mt.c b/miscutils/mt.c index 683804b5a..eb93cb234 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -57,12 +57,12 @@ extern int mt_main(int argc, char **argv) | |||
57 | int fd; | 57 | int fd; |
58 | 58 | ||
59 | if (argc < 2) { | 59 | if (argc < 2) { |
60 | usage(mt_usage); | 60 | show_usage(); |
61 | } | 61 | } |
62 | 62 | ||
63 | if (strcmp(argv[1], "-f") == 0) { | 63 | if (strcmp(argv[1], "-f") == 0) { |
64 | if (argc < 4) { | 64 | if (argc < 4) { |
65 | usage(mt_usage); | 65 | show_usage(); |
66 | } | 66 | } |
67 | file = argv[2]; | 67 | file = argv[2]; |
68 | argv += 2; | 68 | argv += 2; |
diff --git a/miscutils/readlink.c b/miscutils/readlink.c index 57f43d174..c82f64027 100644 --- a/miscutils/readlink.c +++ b/miscutils/readlink.c | |||
@@ -33,7 +33,7 @@ int readlink_main(int argc, char **argv) | |||
33 | int bufsize = 128, size = 128; | 33 | int bufsize = 128, size = 128; |
34 | 34 | ||
35 | if (argc != 2) | 35 | if (argc != 2) |
36 | usage(readlink_usage); | 36 | show_usage(); |
37 | 37 | ||
38 | while (bufsize < size + 1) { | 38 | while (bufsize < size + 1) { |
39 | bufsize *= 2; | 39 | bufsize *= 2; |
diff --git a/miscutils/update.c b/miscutils/update.c index 309ce0cbd..2cf4a98b2 100644 --- a/miscutils/update.c +++ b/miscutils/update.c | |||
@@ -64,7 +64,7 @@ extern int update_main(int argc, char **argv) | |||
64 | flush_duration = atoi(optarg); | 64 | flush_duration = atoi(optarg); |
65 | break; | 65 | break; |
66 | default: | 66 | default: |
67 | usage(update_usage); | 67 | show_usage(); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 7026cc005..65d0fc35f 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c | |||
@@ -31,7 +31,7 @@ extern int watchdog_main(int argc, char **argv) | |||
31 | int fd; | 31 | int fd; |
32 | 32 | ||
33 | if (argc != 2) { | 33 | if (argc != 2) { |
34 | usage(watchdog_usage); | 34 | show_usage(); |
35 | } | 35 | } |
36 | 36 | ||
37 | if ((fd=open(argv[1], O_WRONLY)) == -1) { | 37 | if ((fd=open(argv[1], O_WRONLY)) == -1) { |