[geocode-glib] test-geoip: Fix test function for IP based search
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test-geoip: Fix test function for IP based search
- Date: Tue, 2 Apr 2013 16:48:36 +0000 (UTC)
commit 2764b9fb3e212a515cd1fe7953239d9d85cb82ed
Author: Satabdi Das <satabdidas gmail com>
Date: Thu Mar 21 12:36:25 2013 +0530
test-geoip: Fix test function for IP based search
The IP address is passed from the main () to the test function and
it is that IP address which should be used.
https://bugzilla.gnome.org/show_bug.cgi?id=696543
geocode-glib/test-geoip.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/geocode-glib/test-geoip.c b/geocode-glib/test-geoip.c
index b119ee1..4b1881f 100644
--- a/geocode-glib/test-geoip.c
+++ b/geocode-glib/test-geoip.c
@@ -19,10 +19,10 @@ test_search (gconstpointer data)
ip = (const char *) data;
if (ip)
- ipclient = geocode_ipclient_new_for_ip ("24.34.34.24");
- else {
+ ipclient = geocode_ipclient_new_for_ip (ip);
+ else
ipclient = geocode_ipclient_new ();
- }
+
contents = geocode_ipclient_search (ipclient, &error);
if (!contents) {
g_warning ("Failed at getting the geolocation information: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]