]> code.citadel.org Git - citadel.git/blobdiff - citadel/aidepost.c
* Stripped the build of obsolete parts of the old networker no longer in use.
[citadel.git] / citadel / aidepost.c
index 81fbe7784328ba00395118745f36c518d3591777..c897146074306bc2797ecd8fb37071bd75f7c70c 100644 (file)
@@ -7,7 +7,18 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <time.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 <limits.h>
 #include <errno.h>
 #include <string.h>
@@ -79,7 +90,8 @@ int main(int argc, char **argv)
        }
 
 
-       snprintf(tempspool, sizeof tempspool, "./network/spoolin/ap.%d",
+       snprintf(tempspool, sizeof tempspool,
+               "./network/spoolin/ap.%04x",
                getpid());
 
        tempfp = tmpfile();
@@ -105,7 +117,5 @@ int main(int argc, char **argv)
        fclose(tempfp);
        fclose(spoolfp);
 
-       execlp("./netproc", "netproc", "-i", NULL);
-       perror("cannot run netproc");
-       exit(errno);
+       exit(0);
 }