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:
Victor van den Elzen 2009-08-13 15:07:59 +02:00
parent 15bb233036
commit 0dd450c0ef
3 changed files with 3 additions and 3 deletions

View file

@ -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':

View file

@ -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);
}
/*

View file

@ -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);
}