]> code.citadel.org Git - citadel.git/blobdiff - webcit/tools.c
* Rewrote the HTTP engine and application coupling to run in a worker thread
[citadel.git] / webcit / tools.c
index 13fb0334259d325f97c430554baba3ce2fda306d..3754ac4df8af7f0a2fe074f2492408706e0d27c9 100644 (file)
@@ -2,11 +2,32 @@
  * tools.c -- Miscellaneous routines 
  */
 
-#include <stdio.h>
+
+
+#include <ctype.h>
 #include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <limits.h>
+#include <netinet/in.h>
+#include <netdb.h>
 #include <string.h>
+#include <pwd.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <pthread.h>
+#include <signal.h>
 #include "webcit.h"
 
+
+
+
 char *safestrncpy(char *dest, const char *src, size_t n)
 {
        if (dest == NULL || src == NULL) {
@@ -100,7 +121,7 @@ long extract_long(char *source, long int parmnum)
  */
 int haschar(st, ch)
 char st[];
-int ch;
+char ch;
 {
        int a, b;
        b = 0;