summaryrefslogtreecommitdiff
path: root/news/s-news/files/patch-inews.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-08-04 10:07:22 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-08-04 10:07:22 +0000
commitf7894b5e7e1054e3ba3e597909db189f91e58173 (patch)
tree9ad72af52dddb424c8d4c674480116c879237774 /news/s-news/files/patch-inews.c
parentFix build with gcc-3.4 (diff)
Fix build warnings.
PR: ports/69983 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=115393
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);
+ }
+