]> code.citadel.org Git - citadel.git/blobdiff - citadel/aidepost.c
warning fixes and cleanups for 64-bit machines
[citadel.git] / citadel / aidepost.c
index 0ed777b66f457ef428de76c2a86f84248f69eca7..37d1a295e92e8b1d4844bd61967d11070a92f646 100644 (file)
 #include "citadel.h"
 #include "config.h"
 
-void make_message(FILE *fp, char *target_room, char *author)
+#ifndef HAVE_SNPRINTF
+#include "snprintf.h"
+#endif
+
+
+static void make_message(FILE *fp, char *target_room, char *author)
 {
        int a;
        long bb, cc;
@@ -90,7 +95,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();
@@ -116,7 +122,5 @@ int main(int argc, char **argv)
        fclose(tempfp);
        fclose(spoolfp);
 
-       execlp("./netproc", "netproc", "-i", NULL);
-       perror("cannot run netproc");
-       exit(errno);
+       exit(0);
 }