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 0860fc3..c70d5b9 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);
   }