Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/unlink ANSIfy + __dead
details: https://anonhg.NetBSD.org/src/rev/5dd3a5b9be2d
branches: trunk
changeset: 769064:5dd3a5b9be2d
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 30 20:50:24 2011 +0000
description:
ANSIfy + __dead
diffstat:
usr.sbin/unlink/unlink.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (43 lines):
diff -r bb3e1fc54b46 -r 5dd3a5b9be2d usr.sbin/unlink/unlink.c
--- a/usr.sbin/unlink/unlink.c Tue Aug 30 20:49:29 2011 +0000
+++ b/usr.sbin/unlink/unlink.c Tue Aug 30 20:50:24 2011 +0000
@@ -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.
@@ -33,7 +33,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1999\
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
#include <locale.h>
@@ -41,13 +41,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, "");
@@ -65,7 +62,7 @@
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: unlink file\n");
Home |
Main Index |
Thread Index |
Old Index