diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-11-23 13:41:30 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-23 16:17:38 +0000 |
commit | 44cea438e469a454ba7c8e704db5a64c6649c55b (patch) | |
tree | db6e0dcd204485f68f08c3e3db47b4703a1d2142 | |
parent | 8fa938d27b7388e6b5881718d45abd3315a0583c (diff) |
RTPS: fix no previous prototype for 'compare/hash_by_guid' [-Wmissing-prototypes]
Change-Id: I31b36f1be6bf2476d801e891ac1799ce910a0105
Reviewed-on: https://code.wireshark.org/review/12066
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-rtps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c index e275375a7e..c22ea0e3a3 100644 --- a/epan/dissectors/packet-rtps.c +++ b/epan/dissectors/packet-rtps.c @@ -2816,12 +2816,12 @@ static void rtps_util_store_type_mapping(tvbuff_t *tvb, gint offset, } } } -guint hash_by_guid(gconstpointer key) { +static guint hash_by_guid(gconstpointer key) { endpoint_guid * guid = (endpoint_guid *) key; return g_int_hash(&(guid->app_id)); } -gboolean compare_by_guid(gconstpointer a, gconstpointer b) { +static gboolean compare_by_guid(gconstpointer a, gconstpointer b) { endpoint_guid * guid_a = (endpoint_guid *) a; endpoint_guid * guid_b = (endpoint_guid *) b; return memcmp(guid_a, guid_b, sizeof(endpoint_guid)) == 0; |