pgsql: vacuumdb: Don't assign negative values to a boolean. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: vacuumdb: Don't assign negative values to a boolean.
Date
Msg-id E1ZQcxQ-000593-MR@gemulon.postgresql.org
Whole thread Raw
List 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.GD8470@awork2.anarazel.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(-)


pgsql-committers by date:

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