diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-12-31 16:39:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-12-31 16:39:16 +0000 |
commit | 8b792d513254e334b7ead4e47dd3f37b23b06e77 (patch) | |
tree | f52bb38b447ae7c51c0d518ea2a60238ab121407 | |
parent | 28eb71adcf582a728d6ae7d00f7afbf8bd4a38c1 (diff) |
Don't use dbus_message_iter_get_array_len() since it is obsolete
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1357 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r-- | avahi-daemon/dbus-util.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/avahi-daemon/dbus-util.c b/avahi-daemon/dbus-util.c index c9ef949..d1a7a20 100644 --- a/avahi-daemon/dbus-util.c +++ b/avahi-daemon/dbus-util.c @@ -341,12 +341,9 @@ int avahi_dbus_read_strlst(DBusMessage *m, int idx, AvahiStringList **l) { dbus_message_iter_recurse(&sub, &sub2); - if (dbus_message_iter_get_array_len(&sub2) > 0) - dbus_message_iter_get_fixed_array(&sub2, &k, &n); - else { - k = (const uint8_t*) ""; - n = 0; - } + k = (const uint8_t*) ""; + n = 0; + dbus_message_iter_get_fixed_array(&sub2, &k, &n); strlst = avahi_string_list_add_arbitrary(strlst, k, n); |