summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2008-04-04 14:58:07 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2008-04-04 14:58:07 -0400
commitd7446ac003f63aca29624b42b55f13b64e19a77f (patch)
tree9587186e868dd8d8c2b44a13398d96e01c49e756 /tools
parentca87b90981e88623589b7d1d42ce5bafcb644213 (diff)
Revert "fix dbus-send so it can correctly send dictionaries"
This reverts commit a689ef29f176110b0f74e47fd5dd1d2d6ad3dfd3. Conflicts: ChangeLog * Turns out I reversed a patch that was alread committed but the bug had not been closed. Since the patch was applied before I also reverted the mention of Jérémie in the AUTHORS list mainly for license book keeping sanity.
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-send.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/dbus-send.c b/tools/dbus-send.c
index 3276b950..407c0497 100644
--- a/tools/dbus-send.c
+++ b/tools/dbus-send.c
@@ -150,15 +150,10 @@ append_dict (DBusMessageIter *iter, int keytype, int valtype, const char *value)
while (val != NULL)
{
DBusMessageIter subiter;
- char sig[3];
-
- sig[0] = keytype;
- sig[1] = valtype;
- sig[2] = '\0';
-
+
dbus_message_iter_open_container (iter,
DBUS_TYPE_DICT_ENTRY,
- sig,
+ NULL,
&subiter);
append_arg (&subiter, keytype, val);