aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/IO.c5
-rw-r--r--src/IO/IO.h3
-rw-r--r--src/IO/dpi.c3
-rw-r--r--src/IO/http.c2
-rw-r--r--src/IO/mime.h1
-rw-r--r--src/bookmark.c3
-rw-r--r--src/bw.h2
-rw-r--r--src/cache.c3
-rw-r--r--src/cookies.c1
-rw-r--r--src/css.cc1
-rw-r--r--src/cssparser.cc1
-rw-r--r--src/dicache.c2
-rw-r--r--src/dns.c2
-rw-r--r--src/html.cc1
-rw-r--r--src/image.cc3
-rw-r--r--src/menu.cc2
-rw-r--r--src/misc.c1
-rw-r--r--src/plain.cc3
-rw-r--r--src/png.c4
-rw-r--r--src/prefsparser.cc3
-rw-r--r--src/styleengine.cc3
-rw-r--r--src/ui.cc1
-rw-r--r--src/url.c2
-rw-r--r--src/url.h1
-rw-r--r--src/web.cc4
-rw-r--r--src/xembed.cc1
26 files changed, 1 insertions, 57 deletions
diff --git a/src/IO/IO.c b/src/IO/IO.c
index 77790131..ddcbe2e7 100644
--- a/src/IO/IO.c
+++ b/src/IO/IO.c
@@ -13,14 +13,9 @@
* Dillo's event driven IO engine
*/
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
#include "../msg.h"
#include "../chain.h"
#include "../klist.h"
diff --git a/src/IO/IO.h b/src/IO/IO.h
index 65b032f5..b75488c2 100644
--- a/src/IO/IO.h
+++ b/src/IO/IO.h
@@ -1,9 +1,6 @@
#ifndef __IO_H__
#define __IO_H__
-#include <unistd.h>
-#include <sys/uio.h>
-
#include "d_size.h"
#include "../../dlib/dlib.h"
#include "../chain.h"
diff --git a/src/IO/dpi.c b/src/IO/dpi.c
index ef77a88a..963b3a14 100644
--- a/src/IO/dpi.c
+++ b/src/IO/dpi.c
@@ -21,13 +21,10 @@
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <errno.h> /* for errno */
-#include <stdio.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
diff --git a/src/IO/http.c b/src/IO/http.c
index ae87c8d0..84120a92 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -20,9 +20,7 @@
#include <unistd.h>
#include <errno.h> /* for errno */
#include <stdlib.h>
-#include <signal.h>
#include <fcntl.h>
-#include <sys/wait.h>
#include <sys/socket.h> /* for lots of socket stuff */
#include <netinet/in.h> /* for ntohl and stuff */
#include <arpa/inet.h> /* for inet_ntop */
diff --git a/src/IO/mime.h b/src/IO/mime.h
index 084cc933..0f20cf6d 100644
--- a/src/IO/mime.h
+++ b/src/IO/mime.h
@@ -13,7 +13,6 @@
#define __MIME_H__
#include <config.h>
-#include <stddef.h>
#ifdef __cplusplus
extern "C" {
diff --git a/src/bookmark.c b/src/bookmark.c
index 588e51f8..9a594789 100644
--- a/src/bookmark.c
+++ b/src/bookmark.c
@@ -9,10 +9,7 @@
* (at your option) any later version.
*/
-#include <errno.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include "msg.h"
#include "history.h"
diff --git a/src/bw.h b/src/bw.h
index d005b987..6e8fca58 100644
--- a/src/bw.h
+++ b/src/bw.h
@@ -1,8 +1,6 @@
#ifndef __BW_H__
#define __BW_H__
-#include <sys/types.h>
-
#include "url.h" /* for DilloUrl */
/*
diff --git a/src/cache.c b/src/cache.c
index 8ac859ac..58f3c174 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -16,11 +16,8 @@
#include <ctype.h> /* for tolower */
#include <sys/types.h>
-#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
-#include <unistd.h>
#include "msg.h"
#include "IO/Url.h"
diff --git a/src/cookies.c b/src/cookies.c
index 52364943..493f0e3f 100644
--- a/src/cookies.c
+++ b/src/cookies.c
@@ -34,7 +34,6 @@ void a_Cookies_init(void)
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <time.h> /* for time() and time_t */
#include <ctype.h>
#include "msg.h"
diff --git a/src/css.cc b/src/css.cc
index 974b87f1..4031acfe 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -10,7 +10,6 @@
*/
#include <stdio.h>
-#include <math.h>
#include "../dlib/dlib.h"
#include "misc.h"
#include "html_common.hh"
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 915a4cc6..073faa3e 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -18,7 +18,6 @@
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include "msg.h"
#include "colors.h"
diff --git a/src/dicache.c b/src/dicache.c
index 8503cf66..6d301c31 100644
--- a/src/dicache.c
+++ b/src/dicache.c
@@ -9,9 +9,7 @@
* (at your option) any later version.
*/
-#include <sys/time.h> /* for libc5 compatibility */
#include <string.h> /* for memset */
-#include <stdio.h>
#include <stdlib.h>
#include "msg.h"
diff --git a/src/dns.c b/src/dns.c
index a78d7d46..b688260e 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -21,10 +21,8 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
-#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <signal.h>
#include <string.h>
#include "msg.h"
diff --git a/src/html.cc b/src/html.cc
index 86e5fe97..493290ff 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -20,7 +20,6 @@
#include <string.h> /* for memcpy and memmove */
#include <stdlib.h>
#include <stdio.h> /* for sprintf */
-#include <math.h> /* for rint */
#include <errno.h>
#include "bw.h" /* for BrowserWindow */
diff --git a/src/image.cc b/src/image.cc
index 653d2ea1..c499d977 100644
--- a/src/image.cc
+++ b/src/image.cc
@@ -15,9 +15,6 @@
* of data from an Image to a DwImage widget.
*/
-#include <stdio.h>
-#include <string.h>
-
#include "msg.h"
#include "image.hh"
diff --git a/src/menu.cc b/src/menu.cc
index 9757f523..2e70b5fb 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -11,8 +11,6 @@
// Functions/Methods for menus
-#include <stdio.h>
-#include <stdarg.h>
#include <fltk/events.h>
#include <fltk/PopupMenu.h>
#include <fltk/Item.h>
diff --git a/src/misc.c b/src/misc.c
index 9920fa0a..19120ee9 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <ctype.h>
diff --git a/src/plain.cc b/src/plain.cc
index 4029c048..dfa1b5b5 100644
--- a/src/plain.cc
+++ b/src/plain.cc
@@ -13,9 +13,6 @@
* Module for decoding a text/plain object into a dw widget.
*/
-#include <string.h> /* for memcpy and memmove */
-#include <math.h> /* for rint() */
-
#include "msg.h"
#include "prefs.h"
#include "cache.h"
diff --git a/src/png.c b/src/png.c
index 3015f9d2..5f29553e 100644
--- a/src/png.c
+++ b/src/png.c
@@ -13,12 +13,8 @@
#include <config.h>
#ifdef ENABLE_PNG
-#include <stdio.h>
-#include <string.h>
#include <stdlib.h> /* For abort() */
-#include <zlib.h>
-
#ifdef HAVE_LIBPNG_PNG_H
#include <libpng/png.h>
#else
diff --git a/src/prefsparser.cc b/src/prefsparser.cc
index c3cf7a66..a3bbaef0 100644
--- a/src/prefsparser.cc
+++ b/src/prefsparser.cc
@@ -10,10 +10,7 @@
*/
#include <sys/types.h>
-#include <sys/stat.h>
#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
#include <locale.h> /* for setlocale */
#include "prefs.h"
diff --git a/src/styleengine.cc b/src/styleengine.cc
index a7593c18..4839931c 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -9,8 +9,7 @@
* (at your option) any later version.
*/
-#include <stdio.h>
-#include <math.h>
+/* #include <stdio.h> */
#include "../dlib/dlib.h"
#include "msg.h"
#include "prefs.h"
diff --git a/src/ui.cc b/src/ui.cc
index 298bb2d1..a6c5416c 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -11,7 +11,6 @@
// UI for Dillo
-#include <stdlib.h>
#include <stdio.h>
#include <fltk/HighlightButton.h>
diff --git a/src/url.c b/src/url.c
index d6b16b04..5d15aade 100644
--- a/src/url.c
+++ b/src/url.c
@@ -42,8 +42,6 @@
* - path is never "undefined" though it may be "empty".
*/
-
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/src/url.h b/src/url.h
index c6f6e6a4..952fb25f 100644
--- a/src/url.h
+++ b/src/url.h
@@ -10,7 +10,6 @@
#ifndef __URL_H__
#define __URL_H__
-#include <string.h> /* for strcmp */
#include "d_size.h"
#include "../dlib/dlib.h"
diff --git a/src/web.cc b/src/web.cc
index 2d4069b4..d3408be9 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -9,10 +9,6 @@
* (at your option) any later version.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h> /* for rint */
-
#include "msg.h"
#include "nav.h"
diff --git a/src/xembed.cc b/src/xembed.cc
index ee83ce3d..83143e8b 100644
--- a/src/xembed.cc
+++ b/src/xembed.cc
@@ -9,7 +9,6 @@
* (at your option) any later version.
*/
-#include <stdio.h>
#include <string.h>
#include <ctype.h>