From: Wouter Wijngaards Date: Tue, 14 Jun 2016 10:31:47 +0000 (+0000) Subject: - Fix 781: prealloc() is an HP-UX system library call. X-Git-Tag: release-1.5.10~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43e975b10dbf95dc9e5fdcff98d550df50a01f6a;p=thirdparty%2Funbound.git - Fix 781: prealloc() is an HP-UX system library call. git-svn-id: file:///svn/unbound/trunk@3791 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index aad850cae..95e6dc0fa 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ - Fix windows link of ssl with crypt32. - Fix 779: Union casting is non-portable. - Fix 780: MAP_ANON not defined in HP-UX 11.31. + - Fix 781: prealloc() is an HP-UX system library call. 13 June 2016: Ralph - Use QTYPE=A for QNAME minimisation. diff --git a/util/alloc.c b/util/alloc.c index 05d2fa362..a1152a7cf 100644 --- a/util/alloc.c +++ b/util/alloc.c @@ -64,7 +64,7 @@ alloc_setup_special(alloc_special_t* t) * @param alloc: the structure to fill up. */ static void -prealloc(struct alloc_cache* alloc) +prealloc_setup(struct alloc_cache* alloc) { alloc_special_t* p; int i; @@ -216,7 +216,7 @@ alloc_special_obtain(struct alloc_cache* alloc) } } /* allocate new */ - prealloc(alloc); + prealloc_setup(alloc); if(!(p = (alloc_special_t*)malloc(sizeof(alloc_special_t)))) { log_err("alloc_special_obtain: out of memory"); return NULL;