diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-08-26 21:20:58 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-08-26 21:20:58 -0400 |
commit | 5fff26ff337721c12ab95e23724a20803b00615d (patch) | |
tree | 6f3ccab8e8b4e5a14488af0b4ad2c703a18c4876 | |
parent | 8af5f3ab5ebbab172c943db25d381137aaaed452 (diff) | |
download | expac-5fff26ff337721c12ab95e23724a20803b00615d.tar.xz |
putchar -> fputc(..., stdout)
-rw-r--r-- | expac.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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++; } } |