diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-30 08:03:10 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-30 08:06:25 -0700 |
commit | 34c768fcc55476fa94c997294477693c436b438b (patch) | |
tree | 42cca424f64dddd80a0e2ec45e11b5501b37702f /output | |
parent | 37d335762362377e0c895e319272b67e6395728b (diff) | |
download | nasm-34c768fcc55476fa94c997294477693c436b438b.tar.gz nasm-34c768fcc55476fa94c997294477693c436b438b.tar.bz2 nasm-34c768fcc55476fa94c997294477693c436b438b.zip |
outbin: replace fprintf(rf, not_defined); with fputs(not_defined, rf);
Some vendors get nervous about parameterized printf patterns;
furthermore, it's completely unnecessary in this case.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r-- | output/outbin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/output/outbin.c b/output/outbin.c index 71867c1..fa4c9a3 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -582,7 +582,7 @@ static void bin_cleanup(int debuginfo) /* Step 7: Generate the map file. */ if (map_control) { - const char *not_defined = { "not defined" }; + static const char not_defined[] = "not defined"; /* Display input and output file names. */ fprintf(rf, "\n- NASM Map file "); @@ -636,22 +636,22 @@ static void bin_cleanup(int debuginfo) if (s->flags & ALIGN_DEFINED) fprintf(rf, "%16"PRIX64"", s->align); else - fprintf(rf, not_defined); + fputs(not_defined, rf); fprintf(rf, "\nfollows: "); if (s->flags & FOLLOWS_DEFINED) fprintf(rf, "%s", s->follows); else - fprintf(rf, not_defined); + fputs(not_defined, rf); fprintf(rf, "\nvstart: %16"PRIX64"\nvalign: ", s->vstart); if (s->flags & VALIGN_DEFINED) fprintf(rf, "%16"PRIX64"", s->valign); else - fprintf(rf, not_defined); + fputs(not_defined, rf); fprintf(rf, "\nvfollows: "); if (s->flags & VFOLLOWS_DEFINED) fprintf(rf, "%s", s->vfollows); else - fprintf(rf, not_defined); + fputs(not_defined, rf); fprintf(rf, "\n\n"); } } |