summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-05-24 14:46:55 +0000
committerglebius <glebius@FreeBSD.org>2006-05-24 14:46:55 +0000
commitae95ee086e78ecf8d4735464fb98db7ed74c989c (patch)
treeae380c9aa72d50c20fc0b04c1d984f048415d721 /usr.sbin/ngctl
parent3627ded04781157e82c97c7d50ca55f5c1b76e51 (diff)
downloadFreeBSD-src-ae95ee086e78ecf8d4735464fb98db7ed74c989c.zip
FreeBSD-src-ae95ee086e78ecf8d4735464fb98db7ed74c989c.tar.gz
Unnest includes before forthcoming editing.
Diffstat (limited to 'usr.sbin/ngctl')
-rw-r--r--usr.sbin/ngctl/config.c7
-rw-r--r--usr.sbin/ngctl/connect.c4
-rw-r--r--usr.sbin/ngctl/debug.c5
-rw-r--r--usr.sbin/ngctl/dot.c5
-rw-r--r--usr.sbin/ngctl/list.c6
-rw-r--r--usr.sbin/ngctl/main.c16
-rw-r--r--usr.sbin/ngctl/mkpeer.c4
-rw-r--r--usr.sbin/ngctl/msg.c8
-rw-r--r--usr.sbin/ngctl/name.c5
-rw-r--r--usr.sbin/ngctl/ngctl.h20
-rw-r--r--usr.sbin/ngctl/rmhook.c4
-rw-r--r--usr.sbin/ngctl/show.c6
-rw-r--r--usr.sbin/ngctl/shutdown.c4
-rw-r--r--usr.sbin/ngctl/status.c5
-rw-r--r--usr.sbin/ngctl/types.c6
-rw-r--r--usr.sbin/ngctl/write.c10
16 files changed, 95 insertions, 20 deletions
diff --git a/usr.sbin/ngctl/config.c b/usr.sbin/ngctl/config.c
index 9b4c2b7..edd47d1 100644
--- a/usr.sbin/ngctl/config.c
+++ b/usr.sbin/ngctl/config.c
@@ -36,6 +36,13 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <errno.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
#include "ngctl.h"
#define NOCONFIG "<no config>"
diff --git a/usr.sbin/ngctl/connect.c b/usr.sbin/ngctl/connect.c
index 460e6b2..a9e16f1 100644
--- a/usr.sbin/ngctl/connect.c
+++ b/usr.sbin/ngctl/connect.c
@@ -37,6 +37,10 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+
#include "ngctl.h"
static int ConnectCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/debug.c b/usr.sbin/ngctl/debug.c
index fbfce4e..4fa074d 100644
--- a/usr.sbin/ngctl/debug.c
+++ b/usr.sbin/ngctl/debug.c
@@ -37,6 +37,11 @@
* $FreeBSD$
*/
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "ngctl.h"
static int DebugCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/dot.c b/usr.sbin/ngctl/dot.c
index d5a43f5..4b4fc76 100644
--- a/usr.sbin/ngctl/dot.c
+++ b/usr.sbin/ngctl/dot.c
@@ -38,7 +38,12 @@
* $FreeBSD$
*/
+#include <err.h>
#include <inttypes.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "ngctl.h"
diff --git a/usr.sbin/ngctl/list.c b/usr.sbin/ngctl/list.c
index 6d3cc4f..7f12434 100644
--- a/usr.sbin/ngctl/list.c
+++ b/usr.sbin/ngctl/list.c
@@ -37,6 +37,12 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "ngctl.h"
#define UNNAMED "<unnamed>"
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c
index fcd61df..ecf4cab 100644
--- a/usr.sbin/ngctl/main.c
+++ b/usr.sbin/ngctl/main.c
@@ -38,6 +38,22 @@
* $Whistle: main.c,v 1.12 1999/11/29 19:17:46 archie Exp $
*/
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/select.h>
+
+#include <ctype.h>
+#include <err.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sysexits.h>
+#include <unistd.h>
+
+#include <netgraph.h>
+
#include "ngctl.h"
#define PROMPT "+ "
diff --git a/usr.sbin/ngctl/mkpeer.c b/usr.sbin/ngctl/mkpeer.c
index 621d318..083a627 100644
--- a/usr.sbin/ngctl/mkpeer.c
+++ b/usr.sbin/ngctl/mkpeer.c
@@ -37,6 +37,10 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+
#include "ngctl.h"
static int MkPeerCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/msg.c b/usr.sbin/ngctl/msg.c
index c71815b..fa5ae29 100644
--- a/usr.sbin/ngctl/msg.c
+++ b/usr.sbin/ngctl/msg.c
@@ -38,6 +38,14 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sysexits.h>
+#include <unistd.h>
+
#include "ngctl.h"
static int MsgCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/name.c b/usr.sbin/ngctl/name.c
index 3de1360..92736a7 100644
--- a/usr.sbin/ngctl/name.c
+++ b/usr.sbin/ngctl/name.c
@@ -37,6 +37,11 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <netgraph.h>
+
#include "ngctl.h"
static int NameCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/ngctl.h b/usr.sbin/ngctl/ngctl.h
index 1f7826e..4d8c2ad 100644
--- a/usr.sbin/ngctl/ngctl.h
+++ b/usr.sbin/ngctl/ngctl.h
@@ -37,26 +37,6 @@
* $FreeBSD$
*/
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <sys/select.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sysexits.h>
-#include <limits.h>
-#include <ctype.h>
-#include <errno.h>
-#include <err.h>
-
-#include <netgraph.h>
-#include <netgraph/ng_socket.h>
-#include <netgraph/ng_message.h>
-
#define MAX_CMD_ALIAS 8
/* Command descriptors */
diff --git a/usr.sbin/ngctl/rmhook.c b/usr.sbin/ngctl/rmhook.c
index 834cc0c..ba63a9e 100644
--- a/usr.sbin/ngctl/rmhook.c
+++ b/usr.sbin/ngctl/rmhook.c
@@ -37,6 +37,10 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+
#include "ngctl.h"
static int RmHookCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/show.c b/usr.sbin/ngctl/show.c
index 6921ec4..e60830a 100644
--- a/usr.sbin/ngctl/show.c
+++ b/usr.sbin/ngctl/show.c
@@ -37,6 +37,12 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "ngctl.h"
#define FMT " %-15s %-15s %-12s %-15s %-15s\n"
diff --git a/usr.sbin/ngctl/shutdown.c b/usr.sbin/ngctl/shutdown.c
index d391ba8..e5679dd 100644
--- a/usr.sbin/ngctl/shutdown.c
+++ b/usr.sbin/ngctl/shutdown.c
@@ -37,6 +37,10 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <unistd.h>
+
#include "ngctl.h"
static int ShutdownCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/status.c b/usr.sbin/ngctl/status.c
index 8c10a85..a6c6552 100644
--- a/usr.sbin/ngctl/status.c
+++ b/usr.sbin/ngctl/status.c
@@ -37,6 +37,11 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <errno.h>
+#include <netgraph.h>
+#include <stdio.h>
+
#include "ngctl.h"
#define NOSTATUS "<no status>"
diff --git a/usr.sbin/ngctl/types.c b/usr.sbin/ngctl/types.c
index 30c5c16..8ed151e 100644
--- a/usr.sbin/ngctl/types.c
+++ b/usr.sbin/ngctl/types.c
@@ -37,6 +37,12 @@
* $FreeBSD$
*/
+#include <err.h>
+#include <netgraph.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "ngctl.h"
static int TypesCmd(int ac, char **av);
diff --git a/usr.sbin/ngctl/write.c b/usr.sbin/ngctl/write.c
index d1bdca0..288edf66 100644
--- a/usr.sbin/ngctl/write.c
+++ b/usr.sbin/ngctl/write.c
@@ -33,6 +33,16 @@
* $FreeBSD$
*/
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <err.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <netgraph/ng_socket.h>
+
#include "ngctl.h"
#define BUF_SIZE 8192
OpenPOWER on IntegriCloud