Include opt.h explicitly.
authorEmil Mikulic <emikulic@gmail.com>
Sat, 4 Jun 2011 06:06:20 +0000 (16:06 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 4 Jun 2011 14:00:31 +0000 (00:00 +1000)
acct.c
cap.c
darkstat.h
decode.c
err.c
graph_db.c
hosts_db.c
html.c

diff --git a/acct.c b/acct.c
index 062d1e0..d658a8c 100644 (file)
--- a/acct.c
+++ b/acct.c
@@ -25,6 +25,7 @@
 #include "hosts_db.h"
 #include "localip.h"
 #include "now.h"
+#include "opt.h"
 
 #include <arpa/inet.h> /* for inet_aton() */
 #define __FAVOR_BSD
diff --git a/cap.c b/cap.c
index e72a8be..d213706 100644 (file)
--- a/cap.c
+++ b/cap.c
@@ -13,6 +13,7 @@
 #include "decode.h"
 #include "hosts_db.h"
 #include "localip.h"
+#include "opt.h"
 
 #include <sys/ioctl.h>
 #include <sys/types.h>
index b0f7532..0124cdc 100644 (file)
@@ -11,7 +11,6 @@
  * - PACKAGE_STRING
  */
 #include "config.h"
-#include "opt.h"
 
 #ifdef __GNUC__
 # define _unused_ __attribute__((__unused__))
index 1d1c13c..25671c5 100644 (file)
--- a/decode.c
+++ b/decode.c
@@ -15,6 +15,7 @@
 #include "cap.h"
 #include "decode.h"
 #include "err.h"
+#include "opt.h"
 
 #include <sys/ioctl.h>
 #include <sys/socket.h>
diff --git a/err.c b/err.c
index 5e37793..8c1bbff 100644 (file)
--- a/err.c
+++ b/err.c
@@ -19,6 +19,7 @@
 #include "darkstat.h"
 #include "conv.h"
 #include "err.h"
+#include "opt.h"
 #include "pidfile.h"
 
 #include <errno.h>
index e0daa53..002084f 100644 (file)
@@ -20,6 +20,7 @@
 #include "http.h"
 #include "graph_db.h"
 #include "now.h"
+#include "opt.h"
 
 #include <assert.h>
 #include <stdlib.h>
index 5aee85b..2845f56 100644 (file)
@@ -18,6 +18,7 @@
 #include "http.h" /* for http_base_url */
 #include "ncache.h"
 #include "now.h"
+#include "opt.h"
 #include "str.h"
 
 #include <arpa/inet.h> /* inet_aton() */
diff --git a/html.c b/html.c
index 82e2f91..116cc62 100644 (file)
--- a/html.c
+++ b/html.c
@@ -12,6 +12,7 @@
 #include "str.h"
 #include "html.h"
 #include "http.h" /* for http_base_url */
+#include "opt.h"
 
 void html_open(struct str *buf, const char *title,
     const int want_graph_js)