diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-23 15:01:46 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:37 +0200 |
commit | d5b392afc30cef82ec325a7e3af86a3ee181607e (patch) | |
tree | 99c015ae98dc7acd1d6338be9c084a30f369b923 /common/gmountspec.c | |
parent | 3b5991d2e3dd9cd0f9ed5d2fedef31b89207b228 (diff) | |
download | gvfs-d5b392afc30cef82ec325a7e3af86a3ee181607e.tar.gz |
gdbus: Reword GVariant arguments
and kill the iters.
Diffstat (limited to 'common/gmountspec.c')
-rw-r--r-- | common/gmountspec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/gmountspec.c b/common/gmountspec.c index e8a6cce3..35dd6915 100644 --- a/common/gmountspec.c +++ b/common/gmountspec.c @@ -225,16 +225,16 @@ g_mount_spec_unref (GMountSpec *spec) } GMountSpec * -g_mount_spec_from_dbus (GVariant *iter) +g_mount_spec_from_dbus (GVariant *value) { GMountSpec *spec; const gchar *key; const gchar *mount_prefix; GVariantIter *iter_mount_spec_items; - GVariant *value; + GVariant *v; mount_prefix = NULL; - g_variant_get (iter, "(^&aya{sv})", + g_variant_get (value, "(^&aya{sv})", &mount_prefix, &iter_mount_spec_items); @@ -244,9 +244,9 @@ g_mount_spec_from_dbus (GVariant *iter) if (mount_prefix && mount_prefix[0]) spec->mount_prefix = g_strdup (mount_prefix); - while (g_variant_iter_loop (iter_mount_spec_items, "{&sv}", &key, &value)) + while (g_variant_iter_loop (iter_mount_spec_items, "{&sv}", &key, &v)) { - add_item (spec, key, g_variant_dup_bytestring (value, NULL)); + add_item (spec, key, g_variant_dup_bytestring (v, NULL)); } /* Sort on key */ |