summaryrefslogtreecommitdiff
path: root/output/outcoff.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-09-12 02:23:54 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-09-12 02:23:54 +0000
commitbfebdb0a071fe4f657e9505331ea8cb210c9d9b9 (patch)
tree106c0ea14c4a0d9c3d02dcbea31195c37e9eb208 /output/outcoff.c
parent3ab3f41305fef3bc81f7add649100c986b82487c (diff)
downloadnasm-bfebdb0a071fe4f657e9505331ea8cb210c9d9b9.tar.gz
nasm-bfebdb0a071fe4f657e9505331ea8cb210c9d9b9.tar.bz2
nasm-bfebdb0a071fe4f657e9505331ea8cb210c9d9b9.zip
"const"-ipation fixes from Trevor Woerner
Diffstat (limited to 'output/outcoff.c')
-rw-r--r--output/outcoff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outcoff.c b/output/outcoff.c
index b20f02e..856da58 100644
--- a/output/outcoff.c
+++ b/output/outcoff.c
@@ -121,7 +121,7 @@ static struct SAA *strs;
static unsigned long strslen;
static void coff_gen_init(FILE *, efunc);
-static void coff_sect_write (struct Section *, unsigned char *,
+static void coff_sect_write (struct Section *, const unsigned char *,
unsigned long);
static void coff_write (void);
static void coff_section_header (char *, long, long, long, long, int, long);
@@ -420,7 +420,7 @@ static long coff_add_reloc (struct Section *sect, long segment,
return 0;
}
-static void coff_out (long segto, void *data, unsigned long type,
+static void coff_out (long segto, const void *data, unsigned long type,
long segment, long wrt)
{
struct Section *s;
@@ -529,7 +529,7 @@ static void coff_out (long segto, void *data, unsigned long type,
}
static void coff_sect_write (struct Section *sect,
- unsigned char *data, unsigned long len)
+ const unsigned char *data, unsigned long len)
{
saa_wbytes (sect->data, data, len);
sect->len += len;