RTPS: fix no previous prototype for 'compare/hash_by_guid' [-Wmissing-prototypes]
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 23 Nov 2015 12:41:30 +0000 (13:41 +0100)
committerMichael Mann <mmann78@netscape.net>
Mon, 23 Nov 2015 16:17:38 +0000 (16:17 +0000)
Change-Id: I31b36f1be6bf2476d801e891ac1799ce910a0105
Reviewed-on: https://code.wireshark.org/review/12066
Reviewed-by: Michael Mann <mmann78@netscape.net>
epan/dissectors/packet-rtps.c

index e275375a7e12af1d0b010eacccf5c1c1ebbf5815..c22ea0e3a392aa3c0368abba168e71b8703708e5 100644 (file)
@@ -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;