From: W.C.A. Wijngaards Date: Mon, 18 Nov 2019 12:52:17 +0000 (+0100) Subject: - Provide a prototype for compat malloc to remove compile warning. X-Git-Tag: release-1.9.6rc1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af6f5a3f5408e005f80acae9680a01394cdec0bf;p=thirdparty%2Funbound.git - Provide a prototype for compat malloc to remove compile warning. --- diff --git a/compat/malloc.c b/compat/malloc.c index 559aa100d..d8097b13e 100644 --- a/compat/malloc.c +++ b/compat/malloc.c @@ -5,7 +5,12 @@ #undef malloc #include +#ifndef USE_WINSOCK void *malloc (); +#else +/* provide a prototype */ +void *malloc (size_t n); +#endif /* Allocate an N-byte block of memory from the heap. If N is zero, allocate a 1-byte block. */ diff --git a/doc/Changelog b/doc/Changelog index cd396f832..baef547ca 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - In unbound-host use separate variable for get_option to please code checkers. - update to bison output of 3.4.1 in code repository. + - Provide a prototype for compat malloc to remove compile warning. 13 November 2019: Wouter - iana portlist updated.