From cfb1bc3bb44d6b5a12eac28905b02e6a3a60d17b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 16 Feb 2015 11:32:39 -0800 Subject: Put the 64-bit hash routines into a common file. Some or all are used by the Infiniband, MBIM, and RSVD dissectors; put them into a common source file, with a header for them, and just include the header in the dissectors. Change-Id: I724f0c2232ba751ccbd491222af6f03bafd6d63c Reviewed-on: https://code.wireshark.org/review/7182 Reviewed-by: Guy Harris --- epan/dissectors/packet-infiniband.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'epan/dissectors/packet-infiniband.c') diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c index 350c895233..33fe8ea7be 100644 --- a/epan/dissectors/packet-infiniband.c +++ b/epan/dissectors/packet-infiniband.c @@ -25,13 +25,13 @@ #include "config.h" - #include #include #include #include #include #include +#include #include #include "packet-infiniband.h" @@ -1489,23 +1489,6 @@ static heur_dissector_list_t heur_dissectors_cm_private; /* ----- This sections contains various utility functions indirectly related to Infiniband dissection ---- */ -/* g_int64_hash, g_int64_equal are defined starting glib 2.22 - otherwise, we'll have to - provide them ourselves! */ -#if !GLIB_CHECK_VERSION(2,22,0) -guint -g_int64_hash (gconstpointer v) -{ - return (guint) *(const gint64*) v; -} - -gboolean -g_int64_equal (gconstpointer v1, - gconstpointer v2) -{ - return *((const gint64*) v1) == *((const gint64*) v2); -} -#endif - static void table_destroy_notify(gpointer data) { g_free(data); } -- cgit v1.2.3