diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-14 18:19:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-14 18:19:31 +0000 |
commit | afc159eaf372bac35c9a71cf3208064e692cd1e4 (patch) | |
tree | 0f7de706d1443e20014f0501620cacf162be9aa5 | |
parent | 11220f625c38e6e1413f76e592d90d3ce6e74545 (diff) | |
download | wireshark-afc159eaf372bac35c9a71cf3208064e692cd1e4.tar.gz |
Don't cast away constness.
svn path=/trunk/; revision=54798
-rw-r--r-- | epan/follow.c | 4 | ||||
-rw-r--r-- | epan/geoip_db.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/follow.c b/epan/follow.c index 4de1e9fe45..fe17c1740c 100644 --- a/epan/follow.c +++ b/epan/follow.c @@ -137,8 +137,8 @@ build_follow_conv_filter( packet_info *pi ) { /* UDP over IPv4 */ buf = g_strdup_printf( "(ip.addr eq %s and ip.addr eq %s) and (udp.port eq %d and udp.port eq %d)", - ip_to_str((guint8 *)pi->net_src.data), - ip_to_str((guint8 *)pi->net_dst.data), + ip_to_str((const guint8 *)pi->net_src.data), + ip_to_str((const guint8 *)pi->net_dst.data), pi->srcport, pi->destport ); len = 4; is_ipv6 = FALSE; diff --git a/epan/geoip_db.c b/epan/geoip_db.c index 6cdb699913..2f1cc4f5b7 100644 --- a/epan/geoip_db.c +++ b/epan/geoip_db.c @@ -123,7 +123,7 @@ geoip_dat_scan_dir(const char *dirname) { /* UAT callbacks */ static void* geoip_db_path_copy_cb(void* dest, const void* orig, size_t len _U_) { - const geoip_db_path_t *m = (geoip_db_path_t *)orig; + const geoip_db_path_t *m = (const geoip_db_path_t *)orig; geoip_db_path_t *d = (geoip_db_path_t *)dest; d->path = g_strdup(m->path); |