summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-08-01 16:10:34 +0000
committerColin Walters <walters@verbum.org>2005-08-01 16:10:34 +0000
commit1889d97d4e2a0cb92dfc98c23bcbc70d6624d418 (patch)
tree63cdaf694d582028181ee5a0d3409bc581093f56
parent932272884c8fbdbed70c5a69dc408ece5044a527 (diff)
2005-08-01 Colin Walters <walters@verbum.org>
Patch from Joe Markus Clarke: * tools/dbus-send.c (main): Don't use C99 style initializers (bug #3933).
-rw-r--r--ChangeLog8
-rw-r--r--tools/dbus-send.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 69956bc2..033b51bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
2005-08-01 Colin Walters <walters@verbum.org>
Patch from Joe Markus Clarke:
+
+ * tools/dbus-send.c (main):
+
+ Don't use C99 style initializers (bug #3933).
+
+2005-08-01 Colin Walters <walters@verbum.org>
+
+ Patch from Joe Markus Clarke:
* glib/dbus-gvalue.c (dbus_g_value_types_init):
* glib/dbus-gvalue-utils.c (dbus_g_type_specialized_builtins_init)
diff --git a/tools/dbus-send.c b/tools/dbus-send.c
index 6ab3518a..375fadd9 100644
--- a/tools/dbus-send.c
+++ b/tools/dbus-send.c
@@ -401,6 +401,7 @@ main (int argc, char *argv[])
if (container_type == DBUS_TYPE_DICT_ENTRY)
{
+ char sig[5];
arg = c;
c = strchr (c, ':');
if (c == NULL)
@@ -410,7 +411,6 @@ main (int argc, char *argv[])
}
*(c++) = 0;
secondary_type = type_from_name (arg);
- char sig[5];
sig[0] = DBUS_DICT_ENTRY_BEGIN_CHAR;
sig[1] = type;
sig[2] = secondary_type;