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) {
if (argc < 3) {
printf("Usage: qoiconv <infile> <outfile>\n");
printf("Examples:\n");
printf(" qoiconv input.png output.qoi\n");
printf(" qoiconv input.qoi output.png\n");
puts("Usage: qoiconv <infile> <outfile>");
puts("Examples:");
puts(" qoiconv input.png output.qoi");
puts(" qoiconv input.qoi output.png");
exit(1);
}