Author: charnier Date: Mon Dec 20 09:36:54 2010 New Revision: 216588 URL: http://svn.freebsd.org/changeset/base/216588
Log: Add __unused. Ansi prototypes. Modified: head/usr.sbin/ngctl/main.c head/usr.sbin/ngctl/msg.c Modified: head/usr.sbin/ngctl/main.c ============================================================================== --- head/usr.sbin/ngctl/main.c Mon Dec 20 09:28:28 2010 (r216587) +++ head/usr.sbin/ngctl/main.c Mon Dec 20 09:36:54 2010 (r216588) @@ -34,10 +34,12 @@ * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * - * $FreeBSD$ * $Whistle: main.c,v 1.12 1999/11/29 19:17:46 archie Exp $ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/param.h> #include <sys/socket.h> #include <sys/select.h> @@ -225,7 +227,7 @@ ReadFile(FILE *fp) #ifdef EDITLINE /* Signal handler for Monitor() thread. */ static void -Unblock(int signal) +Unblock(int signal __unused) { unblock = 1; @@ -236,7 +238,7 @@ Unblock(int signal) * can be blocked in el_gets(). */ static void * -Monitor(void *v) +Monitor(void *v __unused) { struct sigaction act; const int maxfd = MAX(csock, dsock) + 1; @@ -270,7 +272,7 @@ Monitor(void *v) } static char * -Prompt(EditLine *el) +Prompt(EditLine *el __unused) { return (PROMPT); Modified: head/usr.sbin/ngctl/msg.c ============================================================================== --- head/usr.sbin/ngctl/msg.c Mon Dec 20 09:28:28 2010 (r216587) +++ head/usr.sbin/ngctl/msg.c Mon Dec 20 09:36:54 2010 (r216588) @@ -35,9 +35,11 @@ * OF SUCH DAMAGE. * * $Whistle: msg.c,v 1.2 1999/11/29 23:38:35 archie Exp $ - * $FreeBSD$ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <err.h> #include <netgraph.h> #include <stdio.h> @@ -121,7 +123,7 @@ MsgCmd(int ac, char **av) * Read and display the next incoming control message */ void -MsgRead() +MsgRead(void) { struct ng_mesg *m, *m2; struct ng_mesg *ascii; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"