From 62e465339a306fa564b69935da494dad6e1b474a Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 17 Jan 2005 19:49:52 +0000 Subject: 2005-01-17 Havoc Pennington * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead of an 8-bit type. Now dbus_bool_t is the type to use whenever you are marshaling/unmarshaling a boolean. --- tools/dbus-send.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/dbus-send.c') diff --git a/tools/dbus-send.c b/tools/dbus-send.c index 87352eb9..412f5fdc 100644 --- a/tools/dbus-send.c +++ b/tools/dbus-send.c @@ -179,6 +179,7 @@ main (int argc, char *argv[]) dbus_int32_t int32; double d; unsigned char byte; + dbus_bool_t v_BOOLEAN; type = DBUS_TYPE_INVALID; arg = argv[i++]; @@ -240,13 +241,13 @@ main (int argc, char *argv[]) case DBUS_TYPE_BOOLEAN: if (strcmp(c, "true") == 0) { - byte = TRUE; - dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &c); + v_BOOLEAN = TRUE; + dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN); } else if (strcmp(c, "false") == 0) { - byte = FALSE; - dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &c); + v_BOOLEAN = FALSE; + dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN); } else { -- cgit