Module Name: src Committed By: joerg Date: Sun Sep 4 20:30:34 UTC 2011
Modified Files: src/usr.bin/mkfifo: mkfifo.c Log Message: ANSIfy + static + __dead To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mkfifo/mkfifo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/mkfifo/mkfifo.c diff -u src/usr.bin/mkfifo/mkfifo.c:1.12 src/usr.bin/mkfifo/mkfifo.c:1.13 --- src/usr.bin/mkfifo/mkfifo.c:1.12 Mon Jul 21 14:19:24 2008 +++ src/usr.bin/mkfifo/mkfifo.c Sun Sep 4 20:30:34 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: mkfifo.c,v 1.12 2008/07/21 14:19:24 lukem Exp $ */ +/* $NetBSD: mkfifo.c,v 1.13 2011/09/04 20:30:34 joerg Exp $ */ /* * Copyright (c) 1990, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94"; #endif -__RCSID("$NetBSD: mkfifo.c,v 1.12 2008/07/21 14:19:24 lukem Exp $"); +__RCSID("$NetBSD: mkfifo.c,v 1.13 2011/09/04 20:30:34 joerg Exp $"); #endif /* not lint */ #include <stdio.h> @@ -52,13 +52,10 @@ #include <unistd.h> #include <err.h> -int main __P((int, char **)); -static void usage __P((void)); +__dead static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, exitval; void *set; @@ -102,8 +99,8 @@ exit(exitval); } -void -usage() +static void +usage(void) { (void)fprintf(stderr, "usage: mkfifo [-m mode] fifoname ...\n"); exit(1);