Replace printf() with puts()

The format strings are absent in these stdout prints.
They can safely be replaced with calls to _puts()_ and shave also the newlines.
This commit is contained in:
Tiago Filipe Silva 2021-12-21 09:41:33 +00:00 committed by GitHub
parent 9c77051f83
commit e0e21e92fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,10 +48,10 @@ SOFTWARE.
int main(int argc, char **argv) { int main(int argc, char **argv) {
if (argc < 3) { if (argc < 3) {
printf("Usage: qoiconv <infile> <outfile>\n"); puts("Usage: qoiconv <infile> <outfile>");
printf("Examples:\n"); puts("Examples:");
printf(" qoiconv input.png output.qoi\n"); puts(" qoiconv input.png output.qoi");
printf(" qoiconv input.qoi output.png\n"); puts(" qoiconv input.qoi output.png");
exit(1); exit(1);
} }