projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean ‘geolocation_plugin.c:260:23: warning: initialization discards 'const' qualifie...
[claws.git]
/
src
/
plugins
/
geolocation
/
geolocation_plugin.c
diff --git
a/src/plugins/geolocation/geolocation_plugin.c
b/src/plugins/geolocation/geolocation_plugin.c
index 0860fc3656707de11b1466e5d8e984e9e93ec037..c70d5b9f89de15c23205a0b29bef94cb5e674707 100644
(file)
--- 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);
}