Skip to content

Commit

Permalink
Prefer putchar over fputc where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
AZero13 committed Jan 12, 2024
1 parent 67e328d commit b3244d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/util/glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,14 +940,14 @@ qprintf(const char *str, Char *s)

(void)printf("%s:\n", str);
for (p = s; *p; p++)
(void)fputc(CHAR(*p), stdout);
(void)fputc('\n', stdout);
(void)putchar(CHAR(*p));
(void)putchar('\n');
for (p = s; *p; p++)
(void)fputc(*p & M_PROTECT ? '"' : ' ', stdout);
(void)fputc('\n', stdout);
(void)putchar(*p & M_PROTECT ? '"' : ' ');
(void)putchar('\n');
for (p = s; *p; p++)
(void)fputc(ismeta(*p) ? '_' : ' ', stdout);
(void)fputc('\n', stdout);
(void)putchar(ismeta(*p) ? '_' : ' ');
(void)putchar('\n');
}
#endif /* DEBUG */
#endif /* HAVE_GLOB */
2 changes: 1 addition & 1 deletion plugins/sudoers/tsdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ dump_entry(struct timestamp_entry *entry, off_t pos)
} else if (entry->type == TS_PPID) {
printf("parent pid: %d\n", (int)entry->u.ppid);
}
fputc('\n', stdout);
putchar('\n');

debug_return;
}
Expand Down

0 comments on commit b3244d5

Please sign in to comment.