>From 9e118ddc9b66faa71e517117d7dc4349d9e9466f Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Mon, 22 Feb 2021 22:51:39 +0000 >Subject: [PATCH] Remove declaration of "mkstemp"
Warning from the compiler: cc -Iconf -Wall -c -o nntp.o nntp.c nntp.c:123:17: error: conflicting types for 'mkstemp' 123 | extern char *mkstemp(); | ^~~~~~~ In file included from nntp.c:17: /usr/include/stdlib.h:688:12: note: previous declaration of 'mkstemp' was here 688 | extern int mkstemp (char *__template) __nonnull ((1)) __wur; | ^~~~~~~ nntp.c: Remove declaration of "mkstemp" as it is defined in <stdlib.h>, see "man 3 mktemp". contrib/rcmail.c: likewise Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- contrib/recmail.c | 2 +- nntp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/recmail.c b/contrib/recmail.c index 25e5f45..40dfe1f 100644 --- a/contrib/recmail.c +++ b/contrib/recmail.c @@ -48,7 +48,7 @@ extern char *getlogin(); extern char *getenv(); extern char *malloc(); -extern char *mkstemp(); +/* extern char *mkstemp(); defined in <stdlib.h>, see "man 3 mkstemp" */ extern struct passwd *getpwnam(); void get_host_name(); diff --git a/nntp.c b/nntp.c index c1bee4c..11327a4 100644 --- a/nntp.c +++ b/nntp.c @@ -120,7 +120,7 @@ int nntp_debug = 0; extern char *home_directory; extern int silent; -extern char *mkstemp(); +/* extern char *mkstemp(); defined in <stdlib.h>, see "man 3 mkstemp" */ static FILE *nntp_in = NULL; /* fp for reading from server */ static FILE *nntp_out = NULL;/* fp for writing to server */ -- 2.30.0 -- Bjarni I. Gislason