summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-18 22:18:09 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-18 22:18:09 -0800
commit682221438e242486b4672cb7bf3297418f836dcd (patch)
treeae757e58c5999af2bd5747c74c331648500b68dc /rdoff
parenta30cc07224154c101c1275c148bf60d3acd43015 (diff)
downloadnasm-682221438e242486b4672cb7bf3297418f836dcd.tar.gz
nasm-682221438e242486b4672cb7bf3297418f836dcd.tar.bz2
nasm-682221438e242486b4672cb7bf3297418f836dcd.zip
Clean up remaining build warnings
Clean up remaining build warnings. None of this should affect code operations. The only warnings which were actually relevant might have been the ones in ldrdf.c, but it's not clear if anyone ever uses that.
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/ldrdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c
index ece8c3f..046139b 100644
--- a/rdoff/ldrdf.c
+++ b/rdoff/ldrdf.c
@@ -218,6 +218,8 @@ void processmodule(const char *filename, struct modulenode *mod)
int32_t bssamount = 0;
int bss_was_referenced = 0;
+ memset(&sconf, 0, sizeof sconf);
+
for (seg = 0; seg < mod->f.nsegs; seg++) {
/*
* get the segment configuration for this type from the segment
@@ -720,7 +722,7 @@ void write_output(const char *filename)
}
i = fread(hr->g.data, 1, sizeof(hr->g.data), ff);
fseek(ff, 0, SEEK_END);
- if (ftell(ff) > sizeof(hr->g.data)) {
+ if (ftell(ff) > (long)sizeof(hr->g.data)) {
fprintf(error_file,
"warning: maximum generic record size is %u, "
"rest of file ignored\n",