CVS commit: src/usr.sbin/unlink

2017-07-04 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Jul  4 07:13:44 UTC 2017

Modified Files:
src/usr.sbin/unlink: unlink.8

Log Message:
Use Ex.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/unlink/unlink.8

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.8
diff -u src/usr.sbin/unlink/unlink.8:1.7 src/usr.sbin/unlink/unlink.8:1.8
--- src/usr.sbin/unlink/unlink.8:1.7	Mon Jul  3 21:35:32 2017
+++ src/usr.sbin/unlink/unlink.8	Tue Jul  4 07:13:43 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: unlink.8,v 1.7 2017/07/03 21:35:32 wiz Exp $
+.\"	$NetBSD: unlink.8,v 1.8 2017/07/04 07:13:43 wiz Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -45,9 +45,7 @@ utility performs the function call
 .Ar file
 must be the pathname of an existing file.
 .Sh EXIT STATUS
-The
-.Nm
-utility exits 0 on success, and >0 if an error occurs.
+.Ex -std unlink
 .Sh SEE ALSO
 .Xr rm 1 ,
 .Xr rmdir 1 ,



CVS commit: src/usr.sbin/unlink

2011-08-30 Thread Joerg Sonnenberger
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);