summaryrefslogtreecommitdiffstats
path: root/usr.bin/mkfifo/mkfifo.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-24 07:02:55 +0000
committercharnier <charnier@FreeBSD.org>1997-07-24 07:02:55 +0000
commit87d786e31432eab6391e66d291d03bf132d779ab (patch)
tree09c9263a0baf8d573e04a3289d785f5baa48ce32 /usr.bin/mkfifo/mkfifo.c
parentd2463fce84cf7908ec59682b80eea9a303f542b6 (diff)
downloadFreeBSD-src-87d786e31432eab6391e66d291d03bf132d779ab.zip
FreeBSD-src-87d786e31432eab6391e66d291d03bf132d779ab.tar.gz
Add includes and prototype.
Diffstat (limited to 'usr.bin/mkfifo/mkfifo.c')
-rw-r--r--usr.bin/mkfifo/mkfifo.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/mkfifo/mkfifo.c b/usr.bin/mkfifo/mkfifo.c
index ddd9a8b..1172cb7 100644
--- a/usr.bin/mkfifo/mkfifo.c
+++ b/usr.bin/mkfifo/mkfifo.c
@@ -32,21 +32,28 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
-#include <errno.h>
+#include <err.h>
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
+
+static void usage __P((void));
int
main(argc, argv)
@@ -75,6 +82,7 @@ main(argc, argv)
exit(exitval);
}
+static void
usage()
{
(void)fprintf(stderr, "usage: mkfifo fifoname ...\n");
OpenPOWER on IntegriCloud