]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Provide a prototype for compat malloc to remove compile warning.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Nov 2019 12:52:17 +0000 (13:52 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Nov 2019 12:52:17 +0000 (13:52 +0100)
compat/malloc.c
doc/Changelog

index 559aa100dd2b058bef545f756d8c224d5f4d7668..d8097b13e02414cada8b21bf09aec57a5b32ce79 100644 (file)
@@ -5,7 +5,12 @@
 #undef malloc
 #include <sys/types.h>
 
+#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.  */
index cd396f832425bd0131b52434a6813ba476974cfb..baef547ca420e9a0491f7922d414de3cd2d81f85 100644 (file)
@@ -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.