From 81bb3b51b0ebf9bf2a7b87d43260bfc547d62060 Mon Sep 17 00:00:00 2001 From: kan Date: Wed, 28 Jul 2004 06:14:44 +0000 Subject: Initialize s variable early to shut up GCC warnings. Do not declare inline functions without body as this is useless in general and generates a warning with GCC 3.4.x. Glanced over by: dhartmei --- sys/contrib/pf/net/if_pfsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/contrib/pf/net/if_pfsync.c') diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 1fa2a1f..e0bd244 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -1311,7 +1311,7 @@ pfsync_request_update(struct pfsync_state_upd *up, struct in_addr *src) struct pfsync_header *h; struct pfsync_softc *sc = ifp->if_softc; struct pfsync_state_upd_req *rup; - int s, ret = 0; /* make the compiler happy */ + int s = 0, ret = 0; /* make the compiler happy */ #ifdef __FreeBSD__ PF_ASSERT(MA_OWNED); -- cgit v1.1