Clean ‘geolocation_plugin.c:260:23: warning: initialization discards 'const' qualifie...
authorRicardo Mones <ricardo@mones.org>
Sat, 16 Nov 2013 16:59:48 +0000 (17:59 +0100)
committerRicardo Mones <ricardo@mones.org>
Sun, 17 Nov 2013 18:40:14 +0000 (19:40 +0100)
src/plugins/geolocation/geolocation_plugin.c

index 0860fc3656707de11b1466e5d8e984e9e93ec037..c70d5b9f89de15c23205a0b29bef94cb5e674707 100644 (file)
@@ -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);
   }