summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-02-07 15:06:05 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-02-07 15:06:05 +0000
commitdda672ddda007da8eeb028e7bdec3b14f2d420ec (patch)
treec9afaf6bd01ba4e21477ab6f6aa104345a41ce52
parent3d6e791208198ba2c40c34106ae1720a44f99fe5 (diff)
add missing headers needed for warn() and err().
ok claudio@ ray@
-rw-r--r--usr.bin/netstat/atalk.c3
-rw-r--r--usr.bin/netstat/if.c3
-rw-r--r--usr.bin/netstat/inet.c3
-rw-r--r--usr.bin/netstat/inet6.c5
-rw-r--r--usr.bin/netstat/mroute.c5
-rw-r--r--usr.bin/netstat/mroute6.c5
6 files changed, 15 insertions, 9 deletions
diff --git a/usr.bin/netstat/atalk.c b/usr.bin/netstat/atalk.c
index 660a56d6c7a..674b2935f58 100644
--- a/usr.bin/netstat/atalk.c
+++ b/usr.bin/netstat/atalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atalk.c,v 1.16 2007/12/19 01:47:00 deraadt Exp $ */
+/* $OpenBSD: atalk.c,v 1.17 2009/02/07 15:06:04 chl Exp $ */
/* $NetBSD: atalk.c,v 1.2 1997/05/22 17:21:26 christos Exp $ */
/*
@@ -47,6 +47,7 @@
#include <netatalk/at.h>
#include <netatalk/ddp_var.h>
+#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index a5ba2eaa05c..5b9b48c580f 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.59 2009/01/26 20:30:26 claudio Exp $ */
+/* $OpenBSD: if.c,v 1.60 2009/02/07 15:06:04 chl Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -45,6 +45,7 @@
#include <netinet/if_ether.h>
#include <arpa/inet.h>
+#include <err.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 57d462b5058..8c1140ef8b0 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.109 2009/02/02 17:19:13 mbalmer Exp $ */
+/* $OpenBSD: inet.c,v 1.110 2009/02/07 15:06:04 chl Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -75,6 +75,7 @@
#include <rpc/pmap_clnt.h>
#include <arpa/inet.h>
+#include <err.h>
#include <limits.h>
#include <netdb.h>
#include <stdio.h>
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index 65db5029a48..4226027f161 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet6.c,v 1.36 2007/12/19 01:47:00 deraadt Exp $ */
+/* $OpenBSD: inet6.c,v 1.37 2009/02/07 15:06:04 chl Exp $ */
/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
/*
* Copyright (c) 1983, 1988, 1993
@@ -58,10 +58,11 @@
#endif
#include <netdb.h>
+#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <errno.h>
#include "netstat.h"
struct socket sockb;
diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c
index e11be3c2aba..c3441090c55 100644
--- a/usr.bin/netstat/mroute.c
+++ b/usr.bin/netstat/mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mroute.c,v 1.17 2007/12/14 18:35:46 deraadt Exp $ */
+/* $OpenBSD: mroute.c,v 1.18 2009/02/07 15:06:04 chl Exp $ */
/* $NetBSD: mroute.c,v 1.10 1996/05/11 13:51:27 mycroft Exp $ */
/*
@@ -56,10 +56,11 @@
#include <netinet/ip_mroute.h>
#undef _KERNEL
+#include <err.h>
+#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
-#include <errno.h>
#include "netstat.h"
static void print_bw_meter(struct bw_meter *bw_meter, int *banner_printed);
diff --git a/usr.bin/netstat/mroute6.c b/usr.bin/netstat/mroute6.c
index 154ae0f3df9..d92c15fcddb 100644
--- a/usr.bin/netstat/mroute6.c
+++ b/usr.bin/netstat/mroute6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mroute6.c,v 1.10 2007/12/14 18:35:46 deraadt Exp $ */
+/* $OpenBSD: mroute6.c,v 1.11 2009/02/07 15:06:04 chl Exp $ */
/*
* Copyright (C) 1998 WIDE Project.
@@ -79,8 +79,9 @@
#include <netinet6/ip6_mroute.h>
#undef _KERNEL
-#include <stdio.h>
+#include <err.h>
#include <errno.h>
+#include <stdio.h>
#include "netstat.h"
#define WID_ORG (lflag ? 39 : (nflag ? 29 : 18)) /* width of origin column */