]> code.citadel.org Git - citadel.git/blobdiff - citadel/aidepost.c
* added RCS Id keyword strings to sources
[citadel.git] / citadel / aidepost.c
index 7a9f96bbd7e866c03207e9fa1c91496067a7ca76..acb4ba38e676228c143afe159fd32e09d6665b9f 100644 (file)
@@ -1,22 +1,23 @@
 /* aidepost.c
  * This is just a little hack to copy standard input to a message in Aide>
  * v1.6
+ * $Id$
  */
 
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <time.h>
+#include <limits.h>
 #include "citadel.h"
+#include "config.h"
 
-void get_config();
-struct config config;
-
-void make_message(filename)
-char *filename; {
+void make_message(char *filename)
+{
        FILE *fp;
        int a;
-       long bb,cc,now;
+       long bb,cc;
+       time_t now;
        time(&now);
        fp=fopen(filename,"wb"); if (fp==NULL) exit(22);
        putc(255,fp);
@@ -42,9 +43,7 @@ char *filename; {
        fclose(fp);
        }
 
-void main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char **argv)
 {
        char tempbase[32];
        char temptmp[64];