From: Ricardo Mones Date: Sat, 16 Nov 2013 16:59:48 +0000 (+0100) Subject: Clean ‘geolocation_plugin.c:260:23: warning: initialization discards 'const' qualifie... X-Git-Tag: 3.9.3~21 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=ec43d63eb0f4f0eefe55c114f7317e50148b83b4;ds=sidebyside Clean ‘geolocation_plugin.c:260:23: warning: initialization discards 'const' qualifier from pointer target type’ --- 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); }