mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
Use fputs instead of fprintf for plain strings
LLVM's Clang warns about this. outieee.c had a real problem.
This commit is contained in:
parent
15bb233036
commit
0dd450c0ef
3 changed files with 3 additions and 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':
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue