Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2010 08:54:30 +0000 (UTC)
From:      Philippe Charnier <charnier@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216586 - head/usr.sbin/mld6query
Message-ID:  <201012200854.oBK8sUrl026921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: charnier
Date: Mon Dec 20 08:54:30 2010
New Revision: 216586
URL: http://svn.freebsd.org/changeset/base/216586

Log:
  Add __unused. Ansi prototypes.

Modified:
  head/usr.sbin/mld6query/mld6.c

Modified: head/usr.sbin/mld6query/mld6.c
==============================================================================
--- head/usr.sbin/mld6query/mld6.c	Mon Dec 20 08:47:43 2010	(r216585)
+++ head/usr.sbin/mld6query/mld6.c	Mon Dec 20 08:54:30 2010	(r216586)
@@ -1,5 +1,4 @@
 /*	$KAME: mld6.c,v 1.15 2003/04/02 11:29:54 suz Exp $	*/
-/*	$FreeBSD$	*/
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -29,6 +28,10 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
 #include <sys/param.h>
 #include <sys/uio.h>
 #include <sys/socket.h>
@@ -330,9 +333,8 @@ dump(int s)
 	fflush(stdout);
 }
 
-/* ARGSUSED */
 void
-quit(int signum)
+quit(int signum __unused)
 {
 	mreq.ipv6mr_multiaddr = any;
 	mreq.ipv6mr_interface = ifindex;
@@ -344,7 +346,7 @@ quit(int signum)
 }
 
 void
-usage()
+usage(void)
 {
 	(void)fprintf(stderr, "usage: mld6query ifname [addr]\n");
 	exit(1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012200854.oBK8sUrl026921>