aboutsummaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-18 02:57:08 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-18 02:57:08 +0000
commitc6ef1fa2e2efac74e46c8fefcc0555d7a6dbe950 (patch)
tree06f9de2e4c7d33d29a448fb1c42ed1beafe18e6e /findutils/find.c
parentb98bab804589df1be486044538dcc05e315376d7 (diff)
downloadbusybox-w32-c6ef1fa2e2efac74e46c8fefcc0555d7a6dbe950.tar.gz
busybox-w32-c6ef1fa2e2efac74e46c8fefcc0555d7a6dbe950.tar.bz2
busybox-w32-c6ef1fa2e2efac74e46c8fefcc0555d7a6dbe950.zip
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/find.c')
-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;
35static int fileAction(const char *fileName, struct stat *statbuf, void* junk) 35static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
36{ 36{
37 if (pattern == NULL) 37 if (pattern == NULL)
38 fprintf(stdout, "%s\n", fileName); 38 puts(fileName);
39 else { 39 else {
40 char *tmp = strrchr(fileName, '/'); 40 char *tmp = strrchr(fileName, '/');
41 41
@@ -44,7 +44,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
44 else 44 else
45 tmp++; 45 tmp++;
46 if (check_wildcard_match(tmp, pattern) == TRUE) 46 if (check_wildcard_match(tmp, pattern) == TRUE)
47 fprintf(stdout, "%s\n", fileName); 47 puts(fileName);
48 } 48 }
49 return (TRUE); 49 return (TRUE);
50} 50}