X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpost.c;h=0d71c31cbac59d0436899773472d898c819eaf4a;hb=19f0a0fb37951be3155401e02425cb25365ff601;hp=cd96ed73ed6665b88ddf95febe9c06e74cc409ea;hpb=e7781fb39d2ad428d0d0c779ed141281d75476dd;p=mmh diff --git a/uip/post.c b/uip/post.c index cd96ed7..0d71c31 100644 --- a/uip/post.c +++ b/uip/post.c @@ -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