mirror of
https://github.com/nmap/nmap.git
synced 2026-08-30 13:42:59 +00:00
Proper code alignment.
This commit is contained in:
parent
6805376faf
commit
64c706c260
1 changed files with 4 additions and 1 deletions
|
|
@ -166,11 +166,14 @@ static int hnode_down(gh_heap_t *heap, gh_hnode_t *hnode)
|
|||
}
|
||||
|
||||
static int heap_grow(gh_heap_t *heap) {
|
||||
int newsize;
|
||||
|
||||
/* Do we really need to grow? */
|
||||
assert(heap->count == heap->highwm);
|
||||
|
||||
newsize = heap->count + GH_SLOTS;
|
||||
heap->slots = (gh_hnode_t **)safe_realloc(heap->slots,
|
||||
(heap->count + GH_SLOTS) * sizeof(gh_hnode_t *));
|
||||
newsize * sizeof(gh_hnode_t *));
|
||||
heap->highwm += GH_SLOTS;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue