Fix the type of the packet data argument to get_xdlc_control().
authorGuy Harris <guy@alum.mit.edu>
Sun, 30 Sep 2018 21:27:45 +0000 (14:27 -0700)
committerGuy Harris <guy@alum.mit.edu>
Sun, 30 Sep 2018 21:28:18 +0000 (21:28 +0000)
It's a blob of bytes, so the right type is guint8 *, not guchar *.

Change-Id: I74afa95da1e14866af68f1580cfbccd55f08ed65
Reviewed-on: https://code.wireshark.org/review/29944
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/xdlc.c
epan/xdlc.h

index 6c272f45433259e8451af326fab2596d4a851206..dc0bde216617d3c4a89131bde0ef89e52e49f136 100644 (file)
@@ -120,7 +120,7 @@ const value_string modifier_vals_resp[] = {
 };
 
 int
-get_xdlc_control(const guchar *pd, int offset, gboolean is_extended)
+get_xdlc_control(const guint8 *pd, int offset, gboolean is_extended)
 {
     guint16 control;
 
index 8438991505c20e72171dfd7a88b03b3f31f767e4..4906dfa015bd66e06ac4adb07e159a87fa6c90a5 100644 (file)
@@ -120,7 +120,7 @@ extern const value_string stype_vals[];
 extern const value_string modifier_vals_cmd[];
 extern const value_string modifier_vals_resp[];
 
-extern int get_xdlc_control(const guchar *pd, int offset, gboolean is_extended);
+extern int get_xdlc_control(const guint8 *pd, int offset, gboolean is_extended);
 
 WS_DLL_PUBLIC int dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
   proto_tree *xdlc_tree, int hf_xdlc_control, gint ett_xdlc_control,