summaryrefslogtreecommitdiff
path: root/news/s-news/files/patch-inews.c
diff options
context:
space:
mode:
Diffstat (limited to 'news/s-news/files/patch-inews.c')
-rw-r--r--news/s-news/files/patch-inews.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/news/s-news/files/patch-inews.c b/news/s-news/files/patch-inews.c
new file mode 100644
index 000000000000..8dbe739c6b8c
--- /dev/null
+++ b/news/s-news/files/patch-inews.c
@@ -0,0 +1,20 @@
+--- inews.c.orig Wed Aug 4 03:21:19 2004
++++ inews.c Wed Aug 4 03:28:27 2004
+@@ -30,6 +30,8 @@
+ #endif
+ #ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#else
++#include <stdlib.h>
+ #endif
+ #ifdef STDC_HEADERS
+ #include <string.h>
+@@ -463,7 +465,7 @@
+
+ static char *message_id(void)
+ {
+- sprintf(buff,"<%lx.%x@%s>",time(0),getpid(),fqdn);
++ sprintf(buff,"<%lx.%x@%s>",(unsigned long)time(0),getpid(),fqdn);
+ return (buff);
+ }
+