X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhbuild.c;h=5f29d0e617a2aee5ceb5985eb414ce60503df6fe;hb=07ac3f117098490f03b7f61e0257dc2d07583402;hp=3432ccc9839b0dbf1d78f267dfc56517ee620bff;hpb=0503a6e9be34f24858b55b555a5c948182b9f24b;p=mmh diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 3432ccc..5f29d0e 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -25,20 +25,10 @@ #include #include -#ifdef TIME_WITH_SYS_TIME +#ifdef HAVE_SYS_TIME_H # include -# include -#else -# ifdef TM_IN_SYS_TIME -# include -# else -# include -# endif -#endif - -#ifdef HAVE_SYS_WAIT_H -# include #endif +#include static struct swit switches[] = { #define CHECKSW 0 @@ -1058,8 +1048,14 @@ use_forw: struct msgs *mp; if (ci->ci_magic) { + int i; + ap = brkstring(ci->ci_magic, " ", "\n"); - copyip(ap, arguments, MAXARGS); + for (i=0; ap[i] && ic_cefile; + char *infilename = ce->ce_file ? ce->ce_file : ct->c_file; /* open content */ - if ((in = fopen(ce->ce_file, "r")) == NULL) - adios(ce->ce_file, "unable to open for reading"); + if ((in = fopen(infilename, "r")) == NULL) + adios (infilename, "unable to open for reading"); /* Initialize md5 context */ MD5Init(&mdContext);