summaryrefslogtreecommitdiff
path: root/src/tblcmp.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-09 16:22:11 -0500
committerWill Estes <westes575@gmail.com>2015-12-09 17:44:33 -0500
commit8205442c7c850f59799a76def5df2f46c76ff307 (patch)
tree002b7543af823591d437d60053de88b11d86b0d5 /src/tblcmp.c
parent3d08a0129229e99e1bcaa33d024e9cb0c27d903c (diff)
Replace zero_out() with stdlib's memset.
Diffstat (limited to 'src/tblcmp.c')
-rw-r--r--src/tblcmp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tblcmp.c b/src/tblcmp.c
index e6d549c..9f7e9a3 100644
--- a/src/tblcmp.c
+++ b/src/tblcmp.c
@@ -299,8 +299,7 @@ void expand_nxt_chk (void)
nxt = reallocate_integer_array (nxt, current_max_xpairs);
chk = reallocate_integer_array (chk, current_max_xpairs);
- zero_out ((char *) (chk + old_max),
- (size_t) (MAX_XPAIRS_INCREMENT * sizeof (int)));
+ memset(chk + old_max, 0, MAX_XPAIRS_INCREMENT * sizeof(int));
}
@@ -421,9 +420,7 @@ void inittbl (void)
{
int i;
- zero_out ((char *) chk,
-
- (size_t) (current_max_xpairs * sizeof (int)));
+ memset(chk, 0, current_max_xpairs * sizeof(int));
tblend = 0;
firstfree = tblend + 1;