#include "control.h"
#include "tools.h"
+#ifndef HAVE_SNPRINTF
+#include "snprintf.h"
+#endif
+
struct CitContext *ContextList = NULL;
char *unique_session_numbers;
int ScheduledShutdown = 0;
tv = time(NULL);
- cprintf("%d %ld\n", OK, tv);
+ cprintf("%d %ld\n", OK, (long)tv);
}
/*
gettimeofday(&tv, NULL);
memset(con->cs_nonce, NONCE_SIZE, 0);
snprintf(con->cs_nonce, NONCE_SIZE, "<%d%ld@%s>",
- rand(), tv.tv_usec, config.c_fqdn);
+ rand(), (long)tv.tv_usec, config.c_fqdn);
}