aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-19 12:09:18 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-19 19:10:00 +0000
commit12574468e1d87af730792e5f15fca854172899ce (patch)
treee91b59c1b3796a902202cd9b7dd7986c3f3786ef /epan
parent592c3673c63561c5126885933e64d734e0572769 (diff)
address_to_str() *does* take a const pointer.
At least now it does. (So does ep_address_to_str().) Change-Id: I5fdf15ca42faac802fd21b4b6f5b750ed402bd05 Reviewed-on: https://code.wireshark.org/review/2442 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-iax2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c
index 1a14bfb50b..1dc5c18dd4 100644
--- a/epan/dissectors/packet-iax2.c
+++ b/epan/dissectors/packet-iax2.c
@@ -607,10 +607,7 @@ static gchar *key_to_str( const iax_circuit_key *key )
}
strp = str[i];
- /* why doesn't ep_address_to_str take a const pointer?
- cast the warnings into oblivion. */
-
- addrstr = address_to_str(NULL, (address *)&key->addr)
+ addrstr = address_to_str(NULL, &key->addr)
g_snprintf(strp, 80, "{%s:%i,%i}",
addrstr,
key->port,