diff --git a/lib/util/glob.c b/lib/util/glob.c index d546837b6c..98d9a0c9bf 100644 --- a/lib/util/glob.c +++ b/lib/util/glob.c @@ -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 */ diff --git a/plugins/sudoers/tsdump.c b/plugins/sudoers/tsdump.c index ec618bc7e3..d8f708efc9 100644 --- a/plugins/sudoers/tsdump.c +++ b/plugins/sudoers/tsdump.c @@ -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; }