From: Ralph Corderoy Date: Mon, 18 Sep 2017 10:59:37 +0000 (+0100) Subject: whom.c: Don't increment atoi(3)'s return value as it's already true. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6e613a1064f418cb3658e1e6c8aa14768816ee5c?ds=inline whom.c: Don't increment atoi(3)'s return value as it's already true. atoi(3) has returned non-zero and distsw holds that value. Only the truthness of distsw matters. Don't increment distsw, as if to show it's been set, because that would turn the true -1 to false 0. Bug pre-dates git. --- diff --git a/uip/whom.c b/uip/whom.c index 145190b7..7a2cacb8 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -174,7 +174,6 @@ main (int argc, char **argv) if (distout (msg, cp, backup) == NOTOK) done (1); vec[vecp++] = "-dist"; - distsw++; } vec[vecp] = NULL;