summaryrefslogtreecommitdiff
path: root/libstore/enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstore/enc.c')
-rw-r--r--libstore/enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstore/enc.c b/libstore/enc.c
index d5002a0e..5838c172 100644
--- a/libstore/enc.c
+++ b/libstore/enc.c
@@ -33,7 +33,7 @@ store_enc_init (struct store_enc *enc,
off_t *offsets, mach_msg_type_number_t num_offsets,
char *data, mach_msg_type_number_t data_len)
{
- bzero (enc, sizeof (*enc));
+ memset (enc, 0, sizeof(*enc));
enc->ports = enc->init_ports = ports;
enc->num_ports = num_ports;
@@ -75,7 +75,7 @@ store_enc_dealloc (struct store_enc *enc)
munmap (enc->data, enc->data_len);
/* For good measure... */
- bzero (enc, sizeof (*enc));
+ memset (enc, 0, sizeof(*enc));
}
/* Copy out the parameters from ENC into the given variables suitably for