]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix 781: prealloc() is an HP-UX system library call.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Jun 2016 10:31:47 +0000 (10:31 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Jun 2016 10:31:47 +0000 (10:31 +0000)
git-svn-id: file:///svn/unbound/trunk@3791 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/alloc.c

index aad850caec38cd032d7121bd744337a9a1eb6d11..95e6dc0fa44aafc4e0a5ab0c893f049b56a6b039 100644 (file)
@@ -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.
index 05d2fa36207ba976282e046f32f5a31de60a7e15..a1152a7cf9fae4897ec3681d408a45e0f763fa1c 100644 (file)
@@ -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;