ANSIfy + __dead

This commit is contained in:
joerg 2011-08-30 20:50:24 +00:00
parent 58b3bed15d
commit 0cc6686eff
1 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: unlink.c,v 1.4 2008/07/21 13:37:00 lukem Exp $ */ /* $NetBSD: unlink.c,v 1.5 2011/08/30 20:50:24 joerg Exp $ */
/*- /*-
* Copyright (c) 1999 The NetBSD Foundation, Inc. * Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -33,7 +33,7 @@
#ifndef lint #ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1999\ __COPYRIGHT("@(#) Copyright (c) 1999\
The NetBSD Foundation, Inc. All rights reserved."); The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: unlink.c,v 1.4 2008/07/21 13:37:00 lukem Exp $"); __RCSID("$NetBSD: unlink.c,v 1.5 2011/08/30 20:50:24 joerg Exp $");
#endif #endif
#include <locale.h> #include <locale.h>
@ -41,13 +41,10 @@ __RCSID("$NetBSD: unlink.c,v 1.4 2008/07/21 13:37:00 lukem Exp $");
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char *[])); __dead static void usage(void);
static void usage __P((void));
int int
main(argc, argv) main(int argc, char *argv[])
int argc;
char *argv[];
{ {
(void)setlocale(LC_ALL, ""); (void)setlocale(LC_ALL, "");
@ -65,7 +62,7 @@ main(argc, argv)
} }
static void static void
usage() usage(void)
{ {
(void)fprintf(stderr, "usage: unlink file\n"); (void)fprintf(stderr, "usage: unlink file\n");