From: volpol Date: Sat, 18 Aug 2018 15:15:41 +0000 (+0200) Subject: Consistently use MGMT_* X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=a01112c0b38fe335c5d54ef7299589b1524fceba;p=bbd.git Consistently use MGMT_* --- diff --git a/main.c b/main.c index 2eefcdb..0265ed8 100644 --- a/main.c +++ b/main.c @@ -57,7 +57,7 @@ static void mix(const char *recipe){ if (0 != pump_add(idx)) break; //or continue? mgmt_start(vol); pump_on(idx); - while (!(sr = mgmt_stop()) && !force_quit) usleep(100); + while (MGMT_CONTINUE == (sr = mgmt_stop()) && !force_quit) usleep(100); pump_off(idx); pump_del(idx); fprintf (stderr, "STOP reason: %d/%d\n", sr, force_quit);