From 4cc7b22fe12f12d2ded7aaa78c9887f53a5133fe Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Dec 2008 19:33:05 +0100 Subject: [PATCH] Remove unused variable and fix another variable name --- src/resolver.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/resolver.c b/src/resolver.c index d77ebc2..01e8cf9 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -181,7 +181,6 @@ int connman_resolver_remove_all(const char *interface) for (list = entry_list; list; list = list->next) { struct entry_data *entry = list->data; - struct connman_resolver *resolver; if (g_str_equal(entry->interface, interface) == FALSE) continue; @@ -210,7 +209,7 @@ static int selftest_remove(const char *interface, const char *domain, return 0; } -static struct connman_resolver selftest = { +static struct connman_resolver selftest_resolver = { .name = "selftest", .priority = CONNMAN_RESOLVER_PRIORITY_HIGH + 42, .append = selftest_append, @@ -221,14 +220,14 @@ int __connman_resolver_selftest(void) { connman_resolver_append("wlan0", "lwn.net", "192.168.0.1"); - connman_resolver_register(&selftest); + connman_resolver_register(&selftest_resolver); connman_resolver_append("eth0", "moblin.org", "192.168.42.1"); connman_resolver_append("wlan0", "lwn.net", "192.168.0.2"); connman_resolver_remove_all("wlan0"); - connman_resolver_unregister(&selftest); + connman_resolver_unregister(&selftest_resolver); return 0; } -- 2.7.4