diff options
author | charnier <charnier@FreeBSD.org> | 2010-12-20 09:36:54 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2010-12-20 09:36:54 +0000 |
commit | 2c12157d7bed8bc5e1b4d1ba192dc624c45f11cd (patch) | |
tree | d61a9b567689fdbdf6b39217798eb7f5397bb12a /usr.sbin/ngctl | |
parent | c30b6f1bc3875b35d4a3a4a4d64d6d8e78a95a2f (diff) | |
download | FreeBSD-src-2c12157d7bed8bc5e1b4d1ba192dc624c45f11cd.zip FreeBSD-src-2c12157d7bed8bc5e1b4d1ba192dc624c45f11cd.tar.gz |
Add __unused. Ansi prototypes.
Diffstat (limited to 'usr.sbin/ngctl')
-rw-r--r-- | usr.sbin/ngctl/main.c | 10 | ||||
-rw-r--r-- | usr.sbin/ngctl/msg.c | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c index 9195546..3581386 100644 --- a/usr.sbin/ngctl/main.c +++ b/usr.sbin/ngctl/main.c @@ -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); diff --git a/usr.sbin/ngctl/msg.c b/usr.sbin/ngctl/msg.c index f74efde..38f0db7 100644 --- a/usr.sbin/ngctl/msg.c +++ b/usr.sbin/ngctl/msg.c @@ -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; |