aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mbim.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-16 11:32:39 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-16 19:33:57 +0000
commitcfb1bc3bb44d6b5a12eac28905b02e6a3a60d17b (patch)
tree6e75b150888d6a67bd76af6dc667527b809ca770 /epan/dissectors/packet-mbim.c
parent4765bbc2a906a6ce4f141aa5beb46c553b4667bd (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-mbim.c')
-rw-r--r--epan/dissectors/packet-mbim.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c
index a1390168be..ebc693eb18 100644
--- a/epan/dissectors/packet-mbim.c
+++ b/epan/dissectors/packet-mbim.c
@@ -35,20 +35,13 @@
#include <epan/reassemble.h>
#include <epan/to_str.h>
#include <epan/strutil.h>
+#include <epan/g_int64_hash_routines.h>
#include "packet-gsm_a_common.h"
#include "packet-gsm_map.h"
#include "packet-usb.h"
#include "packet-mbim.h"
-#if !GLIB_CHECK_VERSION(2,22,0)
-static gboolean
-g_int64_equal(gconstpointer v1, gconstpointer v2)
-{
- return *((const gint64*) v1) == *((const gint64*) v2);
-}
-#endif
-
void proto_register_mbim(void);
void proto_reg_handoff_mbim(void);