further header cleanup
authorAndre <maan@p133.(none)>
Sat, 8 Apr 2006 17:36:25 +0000 (19:36 +0200)
committerAndre <maan@p133.(none)>
Sat, 8 Apr 2006 17:36:25 +0000 (19:36 +0200)
fade.c
fd.c
net.c
para.h
signal.c
string.c

diff --git a/fade.c b/fade.c
index 33a6fa0..94b8669 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -22,6 +22,7 @@
 #include "para.h"
 #include "fd.h"
 
+#include <stropts.h>
 #include <ctype.h>
 #include <curses.h>
 #include <stdlib.h> /* EXIT_SUCCESS */
diff --git a/fd.c b/fd.c
index 4928850..dc22d14 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -20,6 +20,7 @@
 
 #include "para.h"
 
+#include <fcntl.h>
 #include <sys/select.h>
 
 #include "error.h"
diff --git a/net.c b/net.c
index 9ca5cea..66d19fd 100644 (file)
--- a/net.c
+++ b/net.c
@@ -20,9 +20,9 @@
 
 #include "para.h"
 #include "net.h"
+#include "string.h"
 #include <netdb.h>
 #include "error.h"
-#include "string.h"
 
 extern void (*crypt_function_recv)(unsigned long len, const unsigned char *indata, unsigned char *outdata);
 extern void (*crypt_function_send)(unsigned long len, const unsigned char *indata, unsigned char *outdata);
diff --git a/para.h b/para.h
index 6c85361..1ac056b 100644 (file)
--- a/para.h
+++ b/para.h
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/wait.h>
-#include <signal.h>
-#include <sys/signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <time.h> /* time(), localtime() */
 #include <unistd.h>
 #include <errno.h>
 #include <limits.h>
 #include <stdarg.h>
-#include <stropts.h>
-#include <poll.h>
-#include <sys/socket.h>
+#include <ctype.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include <ctype.h>
+#include <sys/socket.h>
 #include <sys/un.h> /* needed by create_pf_socket */
+#include <string.h>
 #include "gcc-compat.h"
 
 /* some internal constants */
@@ -219,6 +215,3 @@ __printf_2_3 void para_log(int, const char*, ...);
                p = para_realloc(p, size); \
        } \
 }
-
-
-
index 6de9adf..2d40d49 100644 (file)
--- a/signal.c
+++ b/signal.c
  */
 /** \file signal.c signal handling functions */
 
+
+
 #include "para.h"
 #include "fd.h"
+
+#include <signal.h>
+
 #include "error.h"
 static int signal_pipe[2];
 
index fba36e5..056a414 100644 (file)
--- a/string.c
+++ b/string.c
 
 /** \file string.c memory allocation and string handling functions */
 
-#include <sys/time.h> /* gettimeofday */
 #include "para.h"
+#include "string.h"
+
+#include <sys/time.h> /* gettimeofday */
 #include <regex.h>
 #include <pwd.h>
 #include <sys/utsname.h> /* uname() */
+#include <string.h>
+
 #include "error.h"
-#include "string.h"
 
 /**
  * paraslash's version of realloc()