diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-28 12:33:17 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-12-28 20:34:15 +0000 |
commit | 18c5496137a0da931b2cf2f52b5a76b570b5a881 (patch) | |
tree | 08b866afb29cd1e89178800f4634c599abf84d3e /epan/rtd_table.c | |
parent | a1c27ef7cf3686fae90b034bcad40c68dbc91fb1 (diff) | |
download | wireshark-18c5496137a0da931b2cf2f52b5a76b570b5a881.tar.gz |
Don't cast away constness unnecessarily.
Compare functions for various collection data types don't need to modify
what they're comparing, so keep everything const.
Change-Id: I1c2cff6954b1a8c5ade74943934324d0bd8f523c
Reviewed-on: https://code.wireshark.org/review/12884
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/rtd_table.c')
-rw-r--r-- | epan/rtd_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/rtd_table.c b/epan/rtd_table.c index 40fe46b0f8..2b17f80607 100644 --- a/epan/rtd_table.c +++ b/epan/rtd_table.c @@ -71,8 +71,8 @@ static GSList *registered_rtd_tables = NULL; static gint insert_sorted_by_table_name(gconstpointer aparam, gconstpointer bparam) { - const register_rtd_t *a = (register_rtd_t *)aparam; - const register_rtd_t *b = (register_rtd_t *)bparam; + const register_rtd_t *a = (const register_rtd_t *)aparam; + const register_rtd_t *b = (const register_rtd_t *)bparam; return g_ascii_strcasecmp(proto_get_protocol_short_name(find_protocol_by_id(a->proto_id)), proto_get_protocol_short_name(find_protocol_by_id(b->proto_id))); } |