summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-message-builder.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-17 19:49:52 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-17 19:49:52 +0000
commit62e465339a306fa564b69935da494dad6e1b474a (patch)
tree0c75e656937e148983dbf3ea313b0bb9efb9f6c6 /dbus/dbus-message-builder.c
parent7bf62e31a3c820852271768fafc04ba95c31a19f (diff)
2005-01-17 Havoc Pennington <hp@redhat.com>
* 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.
Diffstat (limited to 'dbus/dbus-message-builder.c')
-rw-r--r--dbus/dbus-message-builder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-message-builder.c b/dbus/dbus-message-builder.c
index 58718f6d..83b37aff 100644
--- a/dbus/dbus-message-builder.c
+++ b/dbus/dbus-message-builder.c
@@ -456,9 +456,9 @@ parse_basic_type (DBusString *src, char type,
switch (type)
{
case DBUS_TYPE_BYTE:
- case DBUS_TYPE_BOOLEAN:
align = 1;
break;
+ case DBUS_TYPE_BOOLEAN:
case DBUS_TYPE_UINT32:
case DBUS_TYPE_INT32:
align = 4;
@@ -514,9 +514,9 @@ parse_basic_array (DBusString *src, char type,
switch (type)
{
case DBUS_TYPE_BYTE:
- case DBUS_TYPE_BOOLEAN:
elem_size = 1;
break;
+ case DBUS_TYPE_BOOLEAN:
case DBUS_TYPE_UINT32:
case DBUS_TYPE_INT32:
elem_size = 4;