From 10b478b1f8f27c42d8e4c688aac5bc425e2ebdce Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sun, 16 Jul 2023 19:52:33 -0400 Subject: [PATCH] Prefer fputc over fputs where possible fputc is meant for single characters, fputs is for strings. --- cups/dest.c | 2 +- cups/testcache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cups/dest.c b/cups/dest.c index da775a3901..5769686319 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -2206,7 +2206,7 @@ cupsSetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_ } if (wrote) - fputs("\n", fp); + fputc('\n', fp); } /* diff --git a/cups/testcache.c b/cups/testcache.c index 44f75087ee..b181c504a2 100644 --- a/cups/testcache.c +++ b/cups/testcache.c @@ -74,7 +74,7 @@ main(int argc, /* I - Number of command-line args */ printf(",%d", finishings[i]); else printf("%d", finishings[i]); - fputs("\n", stdout); + fputc('\n', stdout); } if ((ppd_bin = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL &&