diff options
author | Victor van den Elzen <victor.vde@gmail.com> | 2009-08-13 15:07:59 +0200 |
---|---|---|
committer | Victor van den Elzen <victor.vde@gmail.com> | 2009-08-13 15:07:59 +0200 |
commit | 0dd450c0efc9474396759aea32acf2913a829bd4 (patch) | |
tree | 6b6ea0df88942ce07d1e73ad1c1c7a66826e6098 | |
parent | 15bb2330368783724cf526dfec5c02d028bd5b98 (diff) | |
download | nasm-0dd450c0efc9474396759aea32acf2913a829bd4.tar.gz |
Use fputs instead of fprintf for plain strings
LLVM's Clang warns about this. outieee.c had a real problem.
-rw-r--r-- | ndisasm.c | 2 | ||||
-rw-r--r-- | output/outieee.c | 2 | ||||
-rw-r--r-- | rdoff/rdflib.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -112,7 +112,7 @@ int main(int argc, char **argv) p++; break; case 'h': - fprintf(stderr, help); + fputs(help, stderr); return 0; case 'r': case 'v': diff --git a/output/outieee.c b/output/outieee.c index ffdd5d6e..e3245f5b 100644 --- a/output/outieee.c +++ b/output/outieee.c @@ -1152,7 +1152,7 @@ static void ieee_putascii(char *format, ...) if ((uint8_t)buffer[i] > 31) checksum += buffer[i]; va_end(ap); - fprintf(ofile, buffer); + fputs(buffer, ofile); } /* diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c index e12c6c6b..1213bead 100644 --- a/rdoff/rdflib.c +++ b/rdoff/rdflib.c @@ -166,7 +166,7 @@ int main(int argc, char **argv) if (argc < 3 || !strncmp(argv[1], "-h", 2) || !strncmp(argv[1], "--h", 3)) { - printf(usage); + fputs(usage, stdout); exit(1); } |