Skip to content

Commit

Permalink
Prefer fputc over fputs where possible
Browse files Browse the repository at this point in the history
fputc is meant for single characters, fputs is for strings.
  • Loading branch information
AreaZR committed Jul 16, 2023
1 parent 3f7b5cb commit 10b478b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cups/dest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ cupsSetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_
}

if (wrote)
fputs("\n", fp);
fputc('\n', fp);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion cups/testcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 10b478b

Please sign in to comment.