Author: chromatic
Date: Sun Jun 10 19:48:42 2007
New Revision: 18914
Modified:
trunk/include/parrot/packfile.h
trunk/src/packfile.c
trunk/src/packfile/pf_items.c
Log:
Fixed a few compilation warnings by chasing consts further.
Modified: trunk/include/parrot/packfile.h
==============================================================================
--- trunk/include/parrot/packfile.h (original)
+++ trunk/include/parrot/packfile.h Sun Jun 10 19:48:42 2007
@@ -226,7 +226,7 @@
INTVAL need_endianize;
opcode_t (*fetch_op)(unsigned char *);
INTVAL (*fetch_iv)(unsigned char *);
- void (*fetch_nv)(unsigned char *, unsigned char *);
+ void (*fetch_nv)(unsigned char *, const unsigned
char *);
} PackFile;
Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c (original)
+++ trunk/src/packfile.c Sun Jun 10 19:48:42 2007
@@ -889,7 +889,7 @@
pf->directory = *pf->dirp;
pf->fetch_op = (opcode_t (*)(unsigned char*)) NULLfunc;
pf->fetch_iv = (INTVAL (*)(unsigned char*)) NULLfunc;
- pf->fetch_nv = (void (*)(unsigned char *, unsigned char *)) NULLfunc;
+ pf->fetch_nv = (void (*)(unsigned char *, const unsigned char *)) NULLfunc;
return pf;
}
Modified: trunk/src/packfile/pf_items.c
==============================================================================
--- trunk/src/packfile/pf_items.c (original)
+++ trunk/src/packfile/pf_items.c Sun Jun 10 19:48:42 2007
@@ -52,7 +52,7 @@
* convert i386 LE 12 byte long double to IEEE 754 8 byte double
*/
static void
-cvt_num12_num8(unsigned char *dest, unsigned char *src)
+cvt_num12_num8(unsigned char *dest, const unsigned char *src)
{
int expo, i, s;
#ifdef __LCC__
@@ -100,7 +100,7 @@
}
static void
-cvt_num12_num8_be(unsigned char *dest, unsigned char *src)
+cvt_num12_num8_be(unsigned char *dest, const unsigned char *src)
{
cvt_num12_num8(dest, src);
/* TODO endianize */