Skip to content
Browse files

replace some instances of printf with fputc/fputs

  • Loading branch information...
1 parent b911dcb commit 16fb95ad6c6f59e2039f5f1bf68797f8fa6b3be3 @falconindy committed Sep 8, 2012
Showing with 13 additions and 13 deletions.
  1. +13 −13 cower.c
View
26 cower.c
@@ -948,7 +948,7 @@ void indentprint(const char *str, int indent) /* {{{ */
/* if we're not a tty, print without indenting */
if(cols == 0) {
- printf("%s", str);
+ fputs(str, stdout);
return;
}
@@ -987,7 +987,7 @@ void indentprint(const char *str, int indent) /* {{{ */
printf("\n%-*s", indent, "");
cidx = indent;
} else {
- printf(" ");
+ fputc(' ', stdout);
cidx++;
}
continue;
@@ -1664,7 +1664,7 @@ void print_extinfo_list(alpm_list_t *list, const char *fieldname, const char *de
printf("%-*c", INFO_INDENT + 1, '\n');
count = INFO_INDENT;
}
- count += printf("%s", (const char*)i->data);
+ count += fputs(i->data, stdout);
if(next) {
count += print_escaped(delim);
}
@@ -2324,16 +2324,16 @@ void usage(void) /* {{{ */
void version(void) /* {{{ */
{
- printf("\n " COWER_VERSION "\n");
- printf(" \\\n"
- " \\\n"
- " ,__, | |\n"
- " (oo)\\| |___\n"
- " (__)\\| | )\\_\n"
- " U | |_w | \\\n"
- " | | || *\n"
- "\n"
- " Cower....\n\n");
+ fputs("\n " COWER_VERSION "\n", stdout);
+ fputs(" \\\n"
+ " \\\n"
+ " ,__, | |\n"
+ " (oo)\\| |___\n"
+ " (__)\\| | )\\_\n"
+ " U | |_w | \\\n"
+ " | | || *\n"
+ "\n"
+ " Cower....\n\n", stdout);
} /* }}} */
size_t yajl_parse_stream(void *ptr, size_t size, size_t nmemb, void *stream) /* {{{ */

0 comments on commit 16fb95a

Please sign in to comment.
Something went wrong with that request. Please try again.