Add includes and prototype.

This commit is contained in:
Philippe Charnier 1997-07-24 07:02:55 +00:00
parent 1988cbc558
commit 3974610c18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27647

View File

@ -32,21 +32,28 @@
*/ */
#ifndef lint #ifndef lint
static char copyright[] = static const char copyright[] =
"@(#) Copyright (c) 1990, 1993\n\ "@(#) Copyright (c) 1990, 1993\n\
The Regents of the University of California. All rights reserved.\n"; The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
#if 0
static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94"; static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <err.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
static void usage __P((void));
int int
main(argc, argv) main(argc, argv)
@ -75,6 +82,7 @@ main(argc, argv)
exit(exitval); exit(exitval);
} }
static void
usage() usage()
{ {
(void)fprintf(stderr, "usage: mkfifo fifoname ...\n"); (void)fprintf(stderr, "usage: mkfifo fifoname ...\n");