]> code.citadel.org Git - citadel.git/blobdiff - citadel/support.c
Wait longer (30 seconds instead of 10) to connect to Citadel server when running...
[citadel.git] / citadel / support.c
index d3ffa929ee525530d4c9a710781981fdadbf8e04..af155d31df92298178ab5e9c03a742be304fa133 100644 (file)
@@ -3,16 +3,12 @@
  */
 
 #include "sysdep.h"
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/stat.h>
 #include <libcitadel.h>
+
 #include "citadel.h"
-#include "server.h"
 #include "support.h"
 
 /*
@@ -85,41 +81,3 @@ int getstring(FILE *fp, char *string)
                } while(string[0]=='#');
        return(strlen(string));
 }
-
-
-
-
-/*
- * mesg_locate()  -  locate a message or help file, case insensitive
- */
-void mesg_locate(char *targ, size_t n, const char *searchfor,
-                int numdirs, const char * const *dirs)
-{
-       int a;
-       char buf[SIZ];
-       struct stat test;
-
-       for (a=0; a<numdirs; ++a) {
-               snprintf(buf, sizeof buf, "%s/%s", dirs[a], searchfor);
-               if (!stat(buf, &test)) {
-                       snprintf(targ, n, "%s/%s", dirs[a], searchfor);
-                       return;
-               }
-       }
-       strcpy(targ,"");
-}
-
-
-#ifndef HAVE_STRERROR
-/*
- * replacement strerror() for systems that don't have it
- */
-char *strerror(int e)
-{
-       static char buf[32];
-
-       snprintf(buf,sizeof buf,"errno = %d",e);
-       return(buf);
-       }
-#endif
-