From e0e21e92fbdc2b6f3d8754dba2cc7efbb086c056 Mon Sep 17 00:00:00 2001 From: Tiago Filipe Silva Date: Tue, 21 Dec 2021 09:41:33 +0000 Subject: [PATCH] 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. --- qoiconv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qoiconv.c b/qoiconv.c index f22513c..79aa75c 100644 --- a/qoiconv.c +++ b/qoiconv.c @@ -48,10 +48,10 @@ SOFTWARE. int main(int argc, char **argv) { if (argc < 3) { - printf("Usage: qoiconv \n"); - printf("Examples:\n"); - printf(" qoiconv input.png output.qoi\n"); - printf(" qoiconv input.qoi output.png\n"); + puts("Usage: qoiconv "); + puts("Examples:"); + puts(" qoiconv input.png output.qoi"); + puts(" qoiconv input.qoi output.png"); exit(1); }