Removed the "base64" utility program. We've been doing base64 with a library functio...
[citadel.git] / citadel / utils / msgform.c
index 201745a03c2e010f44713900d9362c29d635255d..03d94c2c7814fe192b51e85c9f89aad46b9c4a54 100644 (file)
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-
+#include <time.h>
 #include <errno.h>
 #include <libcitadel.h>
 
@@ -37,23 +26,11 @@ int fpgetfield(FILE * fp, char *string);
 int fmout(int width, FILE * fp);
 
 
-#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
 
 int main(int argc, char **argv)
 {
        struct tm tm;
-       int a, b, e, mtype, aflag;
+       int a, b, e, aflag;
        char bbb[1024];
        char subject[1024];
        FILE *fp;
@@ -79,7 +56,7 @@ TOP:  do {
                        exit(0);
        } while (e != 255);
        strcpy(subject, "");
-       mtype = getc(fp);
+       getc(fp);
        aflag = getc(fp);
        if (qwk == 0)
                printf(" ");