Commit 27c708ba authored by rswindell's avatar rswindell
Browse files

Fix stupid gcc printf format warnings (on OpenBSD only).

parent 3652f1ba
......@@ -745,7 +745,7 @@ static void pop3_thread(void* arg)
srand(time(NULL)); /* seed random number generator */
rand(); /* throw-away first result */
sprintf(challenge,"<%x%x%lx%lx@%s>"
,rand(),socket,time(NULL),clock(),startup->host_name);
,rand(),socket,(ulong)time(NULL),clock(),startup->host_name);
sockprintf(socket,"+OK Synchronet POP3 Server %s-%s Ready %s"
,revision,PLATFORM_DESC,challenge);
......@@ -2233,7 +2233,7 @@ static void smtp_thread(void* arg)
}
if(!stricmp(buf,"AUTH CRAM-MD5")) {
sprintf(challenge,"<%x%x%lx%lx@%s>"
,rand(),socket,time(NULL),clock(),startup->host_name);
,rand(),socket,(ulong)time(NULL),clock(),startup->host_name);
#if 0
lprintf("%04d SMTP CRAM-MD5 challenge: %s"
,socket,challenge);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment