From 81711ef8cd219acd030a873ec4452671daeaaa5a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 08:06:22 +0000 Subject: 1999-07-11 Thomas Bushnell, BSG * argp.c (store_parsed_open): Add more braces to clarify if-else structure. * encode.c: Include * zero.c: Likewise. * encode.c (store_encode): Repair syntax. * copy.c (copy_read): Likewise. * enc.c (store_enc_dealloc): Cast first arg of munmap correctly. --- libstore/enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libstore/enc.c') diff --git a/libstore/enc.c b/libstore/enc.c index 65104cf0..d5002a0e 100644 --- a/libstore/enc.c +++ b/libstore/enc.c @@ -61,15 +61,15 @@ store_enc_dealloc (struct store_enc *enc) } if (enc->ports != enc->init_ports) - munmap (enc->ports, enc->num_ports * sizeof (*enc->ports)); + munmap ((caddr_t) enc->ports, enc->num_ports * sizeof (*enc->ports)); } if (enc->ints && enc->num_ints > 0 && enc->ints != enc->init_ints) - munmap (enc->ints, enc->num_ints * sizeof (*enc->ints)); + munmap ((caddr_t) enc->ints, enc->num_ints * sizeof (*enc->ints)); if (enc->offsets && enc->num_offsets > 0 && enc->offsets != enc->init_offsets) - munmap (enc->offsets, enc->num_offsets * sizeof (*enc->offsets)); + munmap ((caddr_t) enc->offsets, enc->num_offsets * sizeof (*enc->offsets)); if (enc->data && enc->data_len > 0 && enc->data != enc->init_data) munmap (enc->data, enc->data_len); -- cgit v1.2.3