summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-07-05 14:31:45 +0000
committerlum <lum@cvs.openbsd.org>2010-07-05 14:31:45 +0000
commit12f990892f27e675b35402528ee95e55de127fdc (patch)
treece962a70c699f42585247bdd8a4a1998ca016282
parent71a588ea16a9666124896c7607623be469bdd50d (diff)
Add prototype and remove unused variable.
ok canacar@
-rw-r--r--usr.bin/systat/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/if.c b/usr.bin/systat/if.c
index a5d4e1bdb43..b488f2b30ff 100644
--- a/usr.bin/systat/if.c
+++ b/usr.bin/systat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.17 2009/11/23 01:51:41 canacar Exp $ */
+/* $OpenBSD: if.c,v 1.18 2010/07/05 14:31:44 lum Exp $ */
/*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
*
@@ -53,6 +53,7 @@ int if_keyboard_callback(int);
void fetchifstat(void);
static void showifstat(struct ifstat *);
static void showtotal(void);
+static void rt_getaddrinfo(struct sockaddr *, int, struct sockaddr **);
/* Define fields */
@@ -187,7 +188,6 @@ fetchifstat(void)
struct sockaddr *info[RTAX_MAX];
struct sockaddr_dl *sdl;
char *buf, *next, *lim;
- static int s = -1;
int mib[6], i;
size_t need;