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/pending/crontab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/pending/crontab.c') diff --git a/toys/pending/crontab.c b/toys/pending/crontab.c index 35f6d659..05c98f2b 100644 --- a/toys/pending/crontab.c +++ b/toys/pending/crontab.c @@ -317,9 +317,9 @@ RETRY: } printf("%s: installing new crontab\n", toys.which->name); if (parse_crontab(tname)) { - snprintf(toybuf, sizeof(toybuf), "errors in crontab file, can't install.\n" + fprintf(stderr, "errors in crontab file, can't install.\n" "Do you want to retry the same edit? "); - if (!yesno(toybuf, 0)) { + if (!yesno(0)) { error_msg("edits left in '%s'", tname); return; } -- cgit v1.2.3