/* 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);
fclose(fp);
}
-void main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char **argv)
{
char tempbase[32];
char temptmp[64];