aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
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/lsb
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/lsb')
-rw-r--r--toys/lsb/killall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/lsb/killall.c b/toys/lsb/killall.c
index 478f7617..e8927559 100644
--- a/toys/lsb/killall.c
+++ b/toys/lsb/killall.c
@@ -40,8 +40,8 @@ static int kill_process(pid_t pid, char *name)
if (pid == TT.cur_pid) return 0;
if (toys.optflags & FLAG_i) {
- snprintf(toybuf, sizeof(toybuf), "Signal %s(%d) ?", name, (int)pid);
- if (!yesno(toybuf, 0)) return 0;
+ fprintf(stderr, "Signal %s(%d)", name, (int)pid);
+ if (!yesno(0)) return 0;
}
errno = 0;