summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-06-19 05:29:27 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-06-19 05:29:27 +0000
commit6f48153410d33d878abf010568b22005399c3a50 (patch)
treef195477bfc335d3d15b0bd7b056441b7b61b1b83 /usr.bin
parentd235c2adc2184de3f1576655ec65d0c5de3aab44 (diff)
err(3) was being called but was missing an include, and end: was
unused. OK markus and itojun
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/net80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/net80211.c b/usr.bin/netstat/net80211.c
index a5105026523..d177aa3c6c0 100644
--- a/usr.bin/netstat/net80211.c
+++ b/usr.bin/netstat/net80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: net80211.c,v 1.3 2005/12/18 17:53:12 reyk Exp $ */
+/* $OpenBSD: net80211.c,v 1.4 2007/06/19 05:29:26 ray Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -32,6 +32,7 @@
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>
+#include <err.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
@@ -102,7 +103,6 @@ net80211_ifstats(char *ifname)
p(is_node_timeout, "\t%lu node%s timed out\n");
p(is_crypto_nomem, "\t%lu failure%s with no memory for crypto ctx\n");
- end:
close(s);
#undef p