Finally able to get rid of acconfig.h! Since we're doing slightly better
[mmh] / uip / post.c
index cd96ed7..0d71c31 100644 (file)
@@ -146,6 +146,10 @@ static struct swit switches[] = {
     { "port server port name/number", 4 },
 #define TLSSW                   41
     { "tls", TLSminc(-3) },
+#define FILEPROCSW              42
+    { "fileproc", -4 },
+#define MHLPROCSW               43
+    { "mhlproc", -3 },
     { NULL, 0 }
 };
 
@@ -537,6 +541,18 @@ main (int argc, char **argv)
                case TLSSW:
                    tls++;
                    continue;
+
+               case FILEPROCSW:
+                   if (!(cp = *argp++) || *cp == '-')
+                       adios (NULL, "missing argument to %s", argp[-2]);
+                   fileproc = cp;
+                   continue;
+
+               case MHLPROCSW:
+                   if (!(cp = *argp++) || *cp == '-')
+                       adios (NULL, "missing argument to %s", argp[-2]);
+                   mhlproc = cp;
+                   continue;
            }
        }
        if (msg)
@@ -1595,7 +1611,7 @@ do_text (char *file, int fd)
  * SIGNAL HANDLING
  */
 
-static RETSIGTYPE
+static void
 sigser (int i)
 {
 #ifndef RELIABLE_SIGNALS