summaryrefslogtreecommitdiffstats
path: root/sbin/routed/output.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-04-05 17:33:07 +0000
committerphk <phk@FreeBSD.org>2009-04-05 17:33:07 +0000
commit3ec0927e8b504ffce75ad2cc7fb80b4437f66167 (patch)
tree87151c0a577cc47d54616fd1103486ad28044478 /sbin/routed/output.c
parentad4b733279aa875e4206faa43e9fc10f80660489 (diff)
downloadFreeBSD-src-3ec0927e8b504ffce75ad2cc7fb80b4437f66167.zip
FreeBSD-src-3ec0927e8b504ffce75ad2cc7fb80b4437f66167.tar.gz
Add some consts, remove some unused stuff and other attempts to calm
FlexeLint down.
Diffstat (limited to 'sbin/routed/output.c')
-rw-r--r--sbin/routed/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/routed/output.c b/sbin/routed/output.c
index 66cbc29..53eb4a5 100644
--- a/sbin/routed/output.c
+++ b/sbin/routed/output.c
@@ -107,6 +107,7 @@ output(enum output_type type,
int soc;
int serrno;
+ assert(ifp != NULL);
osin = *dst;
if (osin.sin_port == 0)
osin.sin_port = htons(RIP_PORT);
@@ -672,6 +673,7 @@ supply(struct sockaddr_in *dst,
struct rt_entry *rt;
int def_metric;
+ assert(ifp != NULL);
ws.state = 0;
ws.gen_limit = 1024;
OpenPOWER on IntegriCloud