From b1353fb9185928249f273340c601244291e269fe Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 7 Sep 2015 17:12:57 -0500 Subject: 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.) --- toys/posix/cp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toys/posix/cp.c') diff --git a/toys/posix/cp.c b/toys/posix/cp.c index 5a55f40b..2b032fe6 100644 --- a/toys/posix/cp.c +++ b/toys/posix/cp.c @@ -173,7 +173,7 @@ int cp_node(struct dirtree *try) fprintf(stderr, "%s: overwrite '%s'", toys.which->name, s = dirtree_path(try, 0)); free(s); - if (!yesno("", 1)) return 0; + if (!yesno(1)) return 0; } } @@ -348,11 +348,11 @@ void cp_main(void) // Try to interpret as letters, commas won't set anything this doesn't. for (s = TT.c.preserve; *s; s++) { for (i=0; iname, TT.destname); - if (!yesno("", 1)) rc = 0; + if (!yesno(1)) rc = 0; else unlink(TT.destname); } } -- cgit v1.2.3