summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-26 02:16:49 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 19:29:44 +0200
commitbd253d1b910a003c1d87f1f58a6afabd4f946ce5 (patch)
tree625adc43143be5324c5b2567f603e3a9454b4932 /src/dbus-common.c
parentc9f09cda7705a1ad583b0d9e95b5f1e1b091438d (diff)
dbus: add api for append gid/uid properties
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r--src/dbus-common.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c
index c2650fdf33..cb43bbdd4c 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -503,7 +503,7 @@ int bus_property_append_uint64(DBusMessageIter *i, const char *property, void *d
assert(property);
assert(data);
- /* Let's ensure that pid_t is actually 64bit, and hence this
+ /* Let's ensure that usec_t is actually 64bit, and hence this
* function can be used for usec_t */
assert_cc(sizeof(uint64_t) == sizeof(usec_t));
@@ -518,11 +518,14 @@ int bus_property_append_uint32(DBusMessageIter *i, const char *property, void *d
assert(property);
assert(data);
- /* Let's ensure that pid_t and mode_t is actually 32bit, and
- * hence this function can be used for pid_t/mode_t */
+ /* Let's ensure that pid_t, mode_t, uid_t, gid_t are actually
+ * 32bit, and hence this function can be used for
+ * pid_t/mode_t/uid_t/gid_t */
assert_cc(sizeof(uint32_t) == sizeof(pid_t));
assert_cc(sizeof(uint32_t) == sizeof(mode_t));
assert_cc(sizeof(uint32_t) == sizeof(unsigned));
+ assert_cc(sizeof(uint32_t) == sizeof(uid_t));
+ assert_cc(sizeof(uint32_t) == sizeof(gid_t));
if (!dbus_message_iter_append_basic(i, DBUS_TYPE_UINT32, data))
return -ENOMEM;