diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:22 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:22 +0000 |
commit | 81711ef8cd219acd030a873ec4452671daeaaa5a (patch) | |
tree | 32657fda476dda84901239f59aad51c9a3c3fc8d /libstore/enc.c | |
parent | 8a3e8261c7a4c8893cf66e30ce6f3a16d00490df (diff) | |
download | hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.tar.gz hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.tar.bz2 hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.zip |
1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>
* argp.c (store_parsed_open): Add more braces to clarify if-else
structure.
* encode.c: Include <sys/mman.h>
* 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.
Diffstat (limited to 'libstore/enc.c')
-rw-r--r-- | libstore/enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |