diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-19 20:03:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-19 20:03:34 +0000 |
commit | e77ae3a2c0328590b43447550bdb1284650b8236 (patch) | |
tree | 1e46d5cf36870771a4f3cedfe84f6161c3871131 /miscutils | |
parent | a3f09076ef5e9a2c26b4d0728cd066bba6c474e4 (diff) | |
download | busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.tar.gz busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.tar.bz2 busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.zip |
Added sfdisk. Ststic-ified a bunch of stuff.
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/dutmp.c | 4 | ||||
-rw-r--r-- | miscutils/makedevs.c | 5 | ||||
-rw-r--r-- | miscutils/mt.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index 7dd5b91fa..c5307b638 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c | |||
@@ -14,12 +14,12 @@ | |||
14 | #include <stdio.h> | 14 | #include <stdio.h> |
15 | #include <utmp.h> | 15 | #include <utmp.h> |
16 | 16 | ||
17 | const char dutmp_usage[] = "dutmp\n" | 17 | static const char dutmp_usage[] = "dutmp\n" |
18 | "\n" | 18 | "\n" |
19 | "\tDump file or stdin utmp file format to stdout, pipe delimited.\n" | 19 | "\tDump file or stdin utmp file format to stdout, pipe delimited.\n" |
20 | "\tdutmp /var/run/utmp\n"; | 20 | "\tdutmp /var/run/utmp\n"; |
21 | 21 | ||
22 | extern int dutmp_fn (int argc, char **argv) | 22 | static int dutmp_main (int argc, char **argv) |
23 | { | 23 | { |
24 | 24 | ||
25 | FILE *f = stdin; | 25 | FILE *f = stdin; |
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 00f0066ff..f7fbeb2fe 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <sys/types.h> | 15 | #include <sys/types.h> |
16 | #include <sys/stat.h> | 16 | #include <sys/stat.h> |
17 | 17 | ||
18 | const char makedevs_usage[] = | 18 | static const char makedevs_usage[] = |
19 | "makedevs 0.01 -- Create an entire range of device files\n\n" | 19 | "makedevs 0.01 -- Create an entire range of device files\n\n" |
20 | "\tmakedevs /dev/ttyS c 4 64 0 63 (ttyS0-ttyS63)\n" | 20 | "\tmakedevs /dev/ttyS c 4 64 0 63 (ttyS0-ttyS63)\n" |
21 | "\tmakedevs /dev/hda b 3 0 0 8 s (hda,hda1-hda8)\n"; | 21 | "\tmakedevs /dev/hda b 3 0 0 8 s (hda,hda1-hda8)\n"; |
@@ -45,8 +45,7 @@ char buf[255]; | |||
45 | case 'f': | 45 | case 'f': |
46 | mode = S_IFIFO; break; | 46 | mode = S_IFIFO; break; |
47 | default: | 47 | default: |
48 | fprintf(stderr, "Usage: %s\n", makedevs_usage); | 48 | usage( makedevs_usage); |
49 | return 2; | ||
50 | } | 49 | } |
51 | mode |= 0660; | 50 | mode |= 0660; |
52 | 51 | ||
diff --git a/miscutils/mt.c b/miscutils/mt.c index a61ad5a40..7168ef7ac 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <sys/mtio.h> | 3 | #include <sys/mtio.h> |
4 | #include <sys/fcntl.h> | 4 | #include <sys/fcntl.h> |
5 | 5 | ||
6 | const char mt_usage[] = "mt [-f device] opcode value\n"; | 6 | static const char mt_usage[] = "mt [-f device] opcode value\n"; |
7 | 7 | ||
8 | struct mt_opcodes { | 8 | struct mt_opcodes { |
9 | char * name; | 9 | char * name; |