BUS_RESULT: fix missed changes of TRUE/FALSE to BUS_RESULT 79/244879/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/hotfix/20201103.000322 accepted/tizen/unified/20200928.072833 submit/tizen/20200925.142828 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 25 Sep 2020 09:27:12 +0000 (11:27 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 25 Sep 2020 09:47:48 +0000 (11:47 +0200)
commit6a5aacd05f021ecd27fed8a9b2432d7f031ad3c2
tree3cc484fb059c9488fc83565d86f5a07f5343d878
parentda9462096c11dd2baf4d5b2556f9f59eb78bdaa7
BUS_RESULT: fix missed changes of TRUE/FALSE to BUS_RESULT

The Tizen's branch code that added Cynara integration had changed
return types in some functions from dbus_bool_t to BusResult. The code
from upstream master branch uses dbus_bool_t. While merging recent
changes from the upstream, there were some parts that were merged
without changing TRUE/FALSE to BUS_RESULT_* or with checking conditions
as bool values instead of checking the enum.

The above, and the fact that TRUE==1, FALSE==0, BUS_RESULT_TRUE==0,
BUS_RESULT_FALSE==1 has led to aborting on asserts, when enabled.
This could also lead to issues with activation.

This commit fixes the TRUE/FALSE handling where needed.

Change-Id: I6cbf1aa0b43699464c9214b50fd8bb23a84709e8
bus/activation.c
bus/bus.c
bus/driver.c