aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-01-18 02:57:08 +0000
committerMatt Kraai <kraai@debian.org>2001-01-18 02:57:08 +0000
commit12f417edbd21b322a8eaa8feb0ab238f13fa83c6 (patch)
tree06f9de2e4c7d33d29a448fb1c42ed1beafe18e6e /findutils
parentc9acf8c766a9a2cc00449db5dea506d7663ad26b (diff)
downloadbusybox-12f417edbd21b322a8eaa8feb0ab238f13fa83c6.tar.gz
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
Vladimir N. Oleynik.
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c
index c82b509b6..32d7db7ab 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -35,7 +35,7 @@ static int dereferenceFlag = FALSE;
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (pattern == NULL)
- fprintf(stdout, "%s\n", fileName);
+ puts(fileName);
else {
char *tmp = strrchr(fileName, '/');
@@ -44,7 +44,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
else
tmp++;
if (check_wildcard_match(tmp, pattern) == TRUE)
- fprintf(stdout, "%s\n", fileName);
+ puts(fileName);
}
return (TRUE);
}