/*
+ * $Id$
+ *
* Internet mail configurator for Citadel/UX
* see copyright.doc for copyright information
*
- * $Id$
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.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 <string.h>
#include <ctype.h>
#include <syslog.h>
void LoadInternetConfig(void)
{
- char ParamName[256], ParamValue[256], buf[256];
+ char ParamName[SIZ], ParamValue[SIZ], buf[SIZ];
FILE *conf;
int a, eqpos;
syslog(LOG_NOTICE, "Couldn't load internetmail.config");
exit(1);
}
- while (fgets(buf, 256, conf) != NULL) {
+ while (fgets(buf, sizeof buf, conf) != NULL) {
if (strlen(buf) > 0)
buf[strlen(buf) - 1] = 0;
strcpy(ParamName, "");