Module Name: src
Committed By: joerg
Date: Tue Aug 30 19:18:17 UTC 2011
Modified Files:
src/usr.sbin/link: link.c
Log Message:
ANSIfy + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/link/link.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.sbin/link/link.c
diff -u src/usr.sbin/link/link.c:1.4 src/usr.sbin/link/link.c:1.5
--- src/usr.sbin/link/link.c:1.4 Mon Jul 21 13:36:58 2008
+++ src/usr.sbin/link/link.c Tue Aug 30 19:18:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: link.c,v 1.4 2008/07/21 13:36:58 lukem Exp $ */
+/* $NetBSD: link.c,v 1.5 2011/08/30 19:18:17 joerg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1999\
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: link.c,v 1.4 2008/07/21 13:36:58 lukem Exp $");
+__RCSID("$NetBSD: link.c,v 1.5 2011/08/30 19:18:17 joerg Exp $");
#endif
#include <locale.h>
@@ -42,13 +42,10 @@
#include <stdlib.h>
#include <unistd.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[])
{
(void)setlocale(LC_ALL, "");
@@ -66,7 +63,7 @@
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: link file1 file2\n");