summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-05-21 23:18:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-05-21 23:18:38 +0200
commit572481b9094f7f1fbba69f1bd0c8f7db31550b01 (patch)
treecb8a6a02aca4ea09edfdc8be3abd66305098bcc8 /src/dbus-common.c
parentb8cef44e40652e166610b0da031a9c0b13032407 (diff)
bus_property_append_long: use signed long and 'x' in the signature for DBUS_TYPE_INT64
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r--src/dbus-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c
index fe7f84b119..9bf0dabe4c 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -569,15 +569,15 @@ int bus_property_append_ul(DBusMessageIter *i, const char *property, void *data)
}
int bus_property_append_long(DBusMessageIter *i, const char *property, void *data) {
- uint64_t u;
+ int64_t l;
assert(i);
assert(property);
assert(data);
- u = (int64_t) *(long*) data;
+ l = (int64_t) *(long*) data;
- if (!dbus_message_iter_append_basic(i, DBUS_TYPE_INT64, &u))
+ if (!dbus_message_iter_append_basic(i, DBUS_TYPE_INT64, &l))
return -ENOMEM;
return 0;