-/* $Id$ */
+/*
+ * $Id$
+ *
+ * Command-line user list utility.
+ *
+ */
+
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.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 "citadel.h"
#include <unistd.h>
#include "ipc.h"
}
void userlist(void) {
- char buf[256];
- char fl[256];
+ char buf[SIZ];
+ char fl[SIZ];
struct tm *tmbuf;
time_t lc;
int main(int argc, char **argv)
{
- char buf[256];
- char hostbuf[256], portbuf[256];
+ char buf[SIZ];
+ char hostbuf[SIZ], portbuf[SIZ];
attach_to_server(argc, argv, hostbuf, portbuf);
serv_gets(buf);