Fix several BusResult/dbus_bool_t mismatches
authorJacek Bukarewicz <j.bukarewicz@samsung.com>
Mon, 9 Feb 2015 15:25:31 +0000 (16:25 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 19 Feb 2016 10:54:00 +0000 (11:54 +0100)
commit8b81a7ac2cb7d5f1d7b9a2107d2455ac83d43f17
tree57b9df1c491b947e6f9f8a2879cd6c7c81dc68de
parentb8f00e077ffef30e4ecd06e919dfdb47bb5da07f
Fix several BusResult/dbus_bool_t mismatches

They were found by temporarily redefining BusResult in the following way:

 typedef enum { BUS_RESULT_TRUE_E, BUS_RESULT_FALSE_E, BUS_RESULT_LATER_E } bus_result_t;
 typedef struct { bus_result_t result; } BusResult;
 #define BUS_RESULT_TRUE ((BusResult){BUS_RESULT_TRUE_E})
 #define BUS_RESULT_FALSE ((BusResult){BUS_RESULT_FALSE_E})
 #define BUS_RESULT_LATER ((BusResult){BUS_RESULT_LATER_E})

It doesn't compile because equality operator is not defined for structs.
Also, structs are not allowed in switch statement. However, some errors
indicated type mismatches which are now fixed.

Change-Id: I0eb5368359f342e0f4239a2ad95d34b9a8e10a23
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
bus/driver.c