NEW etc.: Replace most calls to safe_realloc_ary
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 7 Oct 2014 19:41:20 +0000 (20:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Oct 2014 00:07:13 +0000 (01:07 +0100)
commit2f9fa75f101edc385b91a074f3dc21b8ec41bf79
treee1ec4b2853fcad6a7364c0825e840e28bcf4396b
parentb4ececfc649ba051ccffe1029637f7262a59d8a0
NEW etc.: Replace most calls to safe_realloc_ary

Replace with REALLOC_ARY whenever the array object size is not 1

In subnet_list_set_len and ipset_set_len we abolish the unnecessary
temporary variable `nd'.  In subnet_list_set_len we also simplify the
assert integer overflow condition (the division is not needed because
REALLOC_ARY and hence safe_malloc_ary will check for potential
multiplication overflow).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ipaddr.c
secnet.c