diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-14 21:23:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-14 21:23:06 +0000 |
commit | 67991cf824f8df27e74c92d754fb507681c69ce6 (patch) | |
tree | a0b652f3dc794d1050c1a8de3afb014a621238fa /coreutils/mkfifo.c | |
parent | 68be2ab914e1e20fe666bbd22a89a18714be2789 (diff) | |
download | busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.tar.gz busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.tar.bz2 busybox-w32-67991cf824f8df27e74c92d754fb507681c69ce6.zip |
This patch, put together by Manuel Novoa III, is a merge of work
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.
Diffstat (limited to 'coreutils/mkfifo.c')
-rw-r--r-- | coreutils/mkfifo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index b31e6f172..56a04f772 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -37,7 +37,7 @@ extern int mkfifo_main(int argc, char **argv) | |||
37 | /* Parse any options */ | 37 | /* Parse any options */ |
38 | while (argc > 1) { | 38 | while (argc > 1) { |
39 | if (**argv != '-') | 39 | if (**argv != '-') |
40 | usage(mkfifo_usage); | 40 | show_usage(); |
41 | thisarg = *argv; | 41 | thisarg = *argv; |
42 | thisarg++; | 42 | thisarg++; |
43 | switch (*thisarg) { | 43 | switch (*thisarg) { |
@@ -47,13 +47,13 @@ extern int mkfifo_main(int argc, char **argv) | |||
47 | parse_mode(*argv, &mode); | 47 | parse_mode(*argv, &mode); |
48 | break; | 48 | break; |
49 | default: | 49 | default: |
50 | usage(mkfifo_usage); | 50 | show_usage(); |
51 | } | 51 | } |
52 | argc--; | 52 | argc--; |
53 | argv++; | 53 | argv++; |
54 | } | 54 | } |
55 | if (argc < 1 || *argv[0] == '-') | 55 | if (argc < 1 || *argv[0] == '-') |
56 | usage(mkfifo_usage); | 56 | show_usage(); |
57 | if (mkfifo(*argv, mode) < 0) | 57 | if (mkfifo(*argv, mode) < 0) |
58 | perror_msg_and_die("mkfifo"); | 58 | perror_msg_and_die("mkfifo"); |
59 | return EXIT_SUCCESS; | 59 | return EXIT_SUCCESS; |