From ec43d63eb0f4f0eefe55c114f7317e50148b83b4 Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Sat, 16 Nov 2013 17:59:48 +0100 Subject: [PATCH] =?utf8?q?Clean=20=E2=80=98geolocation=5Fplugin.c:260:23:?= =?utf8?q?=20warning:=20initialization=20discards=20'const'=20qualifier=20?= =?utf8?q?from=20pointer=20target=20type=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/plugins/geolocation/geolocation_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/geolocation/geolocation_plugin.c b/src/plugins/geolocation/geolocation_plugin.c index 0860fc365..c70d5b9f8 100644 --- a/src/plugins/geolocation/geolocation_plugin.c +++ b/src/plugins/geolocation/geolocation_plugin.c @@ -257,7 +257,7 @@ static const gchar* get_country_from_ip(const gchar *ip) g_free(uri); if(soup_address_resolve_sync(addr, NULL) == SOUP_STATUS_OK) { - gchar *physical = soup_address_get_physical(addr); + const gchar *physical = soup_address_get_physical(addr); val = g_hash_table_lookup(iso_country_hash, physical); } -- 2.25.1