cvsuser 03/11/24 16:31:13
Modified: src packfile.c
Log:
Hush up a couple of warnings on Solaris.
Revision Changes Path
1.126 +3 -3 parrot/src/packfile.c
Index: packfile.c
===================================================================
RCS file: /cvs/public/parrot/src/packfile.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -w -r1.125 -r1.126
--- packfile.c 24 Nov 2003 05:47:40 -0000 1.125
+++ packfile.c 25 Nov 2003 00:31:13 -0000 1.126
@@ -7,7 +7,7 @@
** This program is free software. It is subject to the same
** license as Parrot itself.
**
-** $Id: packfile.c,v 1.125 2003/11/24 05:47:40 mrjoltcola Exp $
+** $Id: packfile.c,v 1.126 2003/11/25 00:31:13 mrjoltcola Exp $
**
** History:
** Rework by Melvin; new bytecode format, make bytecode portable.
@@ -112,7 +112,7 @@
}
#ifdef PARROT_HAS_HEADER_SYSMMAN
if (pf->is_mmap_ped)
- munmap(pf->src, pf->size);
+ munmap((void*)pf->src, pf->size);
#endif
mem_sys_free(pf->header);
mem_sys_free(pf->dirp);
@@ -369,7 +369,7 @@
#ifdef PARROT_HAS_HEADER_SYSMMAN
if (self->is_mmap_ped && (
self->need_endianize || self->need_wordsize)) {
- munmap(self->src, self->size);
+ munmap((void *)self->src, self->size);
self->is_mmap_ped = 0;
}
#endif