summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-19 20:03:34 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-19 20:03:34 +0000
commite77ae3a2c0328590b43447550bdb1284650b8236 (patch)
tree1e46d5cf36870771a4f3cedfe84f6161c3871131 /miscutils
parenta3f09076ef5e9a2c26b4d0728cd066bba6c474e4 (diff)
Added sfdisk. Ststic-ified a bunch of stuff.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/dutmp.c4
-rw-r--r--miscutils/makedevs.c5
-rw-r--r--miscutils/mt.c2
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 @@
#include <stdio.h>
#include <utmp.h>
-const char dutmp_usage[] = "dutmp\n"
+static const char dutmp_usage[] = "dutmp\n"
"\n"
"\tDump file or stdin utmp file format to stdout, pipe delimited.\n"
"\tdutmp /var/run/utmp\n";
-extern int dutmp_fn (int argc, char **argv)
+static int dutmp_main (int argc, char **argv)
{
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 @@
#include <sys/types.h>
#include <sys/stat.h>
-const char makedevs_usage[] =
+static const char makedevs_usage[] =
"makedevs 0.01 -- Create an entire range of device files\n\n"
"\tmakedevs /dev/ttyS c 4 64 0 63 (ttyS0-ttyS63)\n"
"\tmakedevs /dev/hda b 3 0 0 8 s (hda,hda1-hda8)\n";
@@ -45,8 +45,7 @@ char buf[255];
case 'f':
mode = S_IFIFO; break;
default:
- fprintf(stderr, "Usage: %s\n", makedevs_usage);
- return 2;
+ usage( makedevs_usage);
}
mode |= 0660;
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 @@
#include <sys/mtio.h>
#include <sys/fcntl.h>
-const char mt_usage[] = "mt [-f device] opcode value\n";
+static const char mt_usage[] = "mt [-f device] opcode value\n";
struct mt_opcodes {
char * name;