Module Name: src Committed By: joerg Date: Tue Aug 30 20:50:24 UTC 2011
Modified Files: src/usr.sbin/unlink: unlink.c Log Message: ANSIfy + __dead To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/unlink/unlink.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/unlink/unlink.c diff -u src/usr.sbin/unlink/unlink.c:1.4 src/usr.sbin/unlink/unlink.c:1.5 --- src/usr.sbin/unlink/unlink.c:1.4 Mon Jul 21 13:37:00 2008 +++ src/usr.sbin/unlink/unlink.c Tue Aug 30 20:50:24 2011 @@ -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");