chiark / gitweb /
tree-wide: drop !! casts to booleans
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Jun 2018 14:02:03 +0000 (16:02 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitd9537fde9944a03f48054e0f4b6a9aea7d3c2a9d
tree1f4d52653dea6867cba74e3c950d251646581822
parent5794614c99bdb57a405f293923bf17f24dad25e9
tree-wide: drop !! casts to booleans

They are not needed, because anything that is non-zero is converted
to true.

C11:
> 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the
> value compares equal to 0; otherwise, the result is 1.

https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
src/basic/format-table.c
src/basic/verbs.c
src/basic/virt.c
src/login/logind-dbus.c
src/shared/bus-util.c
src/shared/conf-parser.c