pgsql: vacuumdb: Don't assign negative values to a boolean.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: vacuumdb: Don't assign negative values to a boolean.
Date: 2015-08-15 15:01:16
Message-ID: E1ZQcxQ-000593-MR@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

vacuumdb: Don't assign negative values to a boolean.

Since a17923204736 (vacuumdb: enable parallel mode) -1 has been assigned
to a boolean. That can, justifiedly, trigger compiler warnings. There's
also no need for ternary logic, result was only ever set to 0 or -1. So
don't.

Discussion: 20150812084351(dot)GD8470(at)awork2(dot)anarazel(dot)de
Backpatch: 9.5

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/32951f9aa9acfd4b6318f6daf39c3d1c10a264ba

Modified Files
--------------
src/bin/scripts/vacuumdb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-08-15 15:02:43 pgsql: Use fuzzy path cost tiebreaking rule in our oldest supported bra
Previous Message Andres Freund 2015-08-15 15:01:15 pgsql: vacuumdb: Don't assign negative values to a boolean.