aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/find.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-09-07 17:12:57 -0500
committerRob Landley <rob@landley.net>2015-09-07 17:12:57 -0500
commitb1353fb9185928249f273340c601244291e269fe (patch)
treee75f4ee65b3f88a1fd436b9605826c1df160f514 /toys/posix/find.c
parent960100aa9cb588a73125d43ec0b0a7152a95b43f (diff)
downloadtoybox-b1353fb9185928249f273340c601244291e269fe.tar.gz
Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself.
This fixes the build break, the change to yesno() prototype accidentally got checked in last commit. (Oops, sorry.)
Diffstat (limited to 'toys/posix/find.c')
-rw-r--r--toys/posix/find.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/posix/find.c b/toys/posix/find.c
index 99cf5e2f..10585294 100644
--- a/toys/posix/find.c
+++ b/toys/posix/find.c
@@ -421,10 +421,8 @@ static int do_find(struct dirtree *new)
if (aa->dir) aa->prev = (void *)1;
if (*s == 'o') {
- char *prompt = xmprintf("[%s] %s", ss1, name);
- test = yesno(prompt, 0);
- free(prompt);
- if (!test) {
+ fprintf(stderr, "[%s] %s", ss1, name);
+ if (!(test = yesno(0))) {
free(name);
goto cont;
}