From 5fff26ff337721c12ab95e23724a20803b00615d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 26 Aug 2012 21:20:58 -0400 Subject: putchar -> fputc(..., stdout) --- expac.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/expac.c b/expac.c index 84a7081..24a4487 100644 --- a/expac.c +++ b/expac.c @@ -333,39 +333,39 @@ static int print_escaped(const char *delim) { if (*f == '\\') { switch (*++f) { case '\\': - putchar('\\'); + fputc('\\', stdout); break; case '"': - putchar('\"'); + fputc('\"', stdout); break; case 'a': - putchar('\a'); + fputc('\a', stdout); break; case 'b': - putchar('\b'); + fputc('\b', stdout); break; case 'e': /* \e is nonstandard */ - putchar('\033'); + fputc('\033', stdout); break; case 'n': - putchar('\n'); + fputc('\n', stdout); break; case 'r': - putchar('\r'); + fputc('\r', stdout); break; case 't': - putchar('\t'); + fputc('\t', stdout); break; case 'v': - putchar('\v'); + fputc('\v', stdout); break; case '0': - putchar('\0'); + fputc('\0', stdout); break; ++out; } } else { - putchar(*f); + fputc(*f, stdout); ++out; } } @@ -555,11 +555,11 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) { out += print_list(alpm_pkg_get_backup(pkg), alpm_backup_get_name, shortdeps); break; case '%': - putchar('%'); + fputc('%', stdout); out++; break; default: - putchar('?'); + fputc('?', stdout); out++; break; } @@ -570,7 +570,7 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) { buf[2] = '\0'; out += print_escaped(buf); } else { - putchar(*f); + fputc(*f, stdout); out++; } } -- cgit v1.2.3-70-g09d2