From 6e3a318982eaafb7903844671cb602920480220f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 17 Jun 2005 17:10:41 +0000 Subject: 2005-06-17 Colin Walters * tools/dbus-names-model.c (have_names_notify): Fix call to dbus_g_proxy_end_call. --- tools/dbus-names-model.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tools/dbus-names-model.c') diff --git a/tools/dbus-names-model.c b/tools/dbus-names-model.c index 01f7c4e8..b1ea24eb 100644 --- a/tools/dbus-names-model.c +++ b/tools/dbus-names-model.c @@ -65,7 +65,6 @@ have_names_notify (DBusGPendingCall *call, NamesModel *names_model; GError *error; char **names; - int n_elements; int i; names_model = NAMES_MODEL (data); @@ -77,8 +76,8 @@ have_names_notify (DBusGPendingCall *call, error = NULL; if (!dbus_g_proxy_end_call (names_model->driver_proxy, names_model->pending_list_names, - &error, G_TYPE_STRV, - &names, &n_elements, G_TYPE_INVALID)) + &error, + G_TYPE_STRV, &names, G_TYPE_INVALID)) { g_assert (names == NULL); g_assert (error != NULL); @@ -93,8 +92,6 @@ have_names_notify (DBusGPendingCall *call, { GtkTreeIter iter; - g_assert (i < n_elements); - #if 0 g_printerr ("%d of %d: %s\n", i, n_elements, names[i]); -- cgit