mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
- Fix 781: prealloc() is an HP-UX system library call.
git-svn-id: file:///svn/unbound/trunk@3791 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e7030b6b87
commit
43e975b10d
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue