diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-08 16:03:00 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-08 16:03:00 +0000 |
commit | ea137e5787537fc6d9d3cc7e258c5f826f8f7369 (patch) | |
tree | bcedcc5eb95ae5dc626899b460898e0a46a955b4 /usr.sbin/ospfd | |
parent | 47cd834162ef1c53da4831ee71be87fef4b5909c (diff) |
Cleanup with lint. Kill unused variable and fix some types.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/ospfd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c index af298293c11..fd8b56e0463 100644 --- a/usr.sbin/ospfd/ospfd.c +++ b/usr.sbin/ospfd/ospfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.c,v 1.27 2006/02/10 18:30:47 claudio Exp $ */ +/* $OpenBSD: ospfd.c,v 1.28 2006/03/08 16:02:59 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -61,8 +61,6 @@ int pipe_parent2ospfe[2]; int pipe_parent2rde[2]; int pipe_ospfe2rde[2]; -volatile sig_atomic_t main_quit = 0; - struct ospfd_conf *conf = NULL; struct imsgbuf *ibuf_ospfe; struct imsgbuf *ibuf_rde; @@ -70,6 +68,7 @@ struct imsgbuf *ibuf_rde; pid_t ospfe_pid = 0; pid_t rde_pid = 0; +/* ARGSUSED */ void main_sig_handler(int sig, short event, void *arg) { @@ -309,12 +308,13 @@ check_child(pid_t pid, const char *pname) } /* imsg handling */ +/* ARGSUSED */ void main_dispatch_ospfe(int fd, short event, void *bula) { struct imsgbuf *ibuf = bula; struct imsg imsg; - int n; + ssize_t n; switch (event) { case EV_READ: @@ -371,12 +371,13 @@ main_dispatch_ospfe(int fd, short event, void *bula) imsg_event_add(ibuf); } +/* ARGSUSED */ void main_dispatch_rde(int fd, short event, void *bula) { struct imsgbuf *ibuf = bula; struct imsg imsg; - int n; + ssize_t n; switch (event) { case EV_READ: |