The attached patch fixes the following compilation warnings (and
potential problems that may otherwise follow).
packet-per.c(796) : warning C4047: 'function' : 'struct _proto_node ** '
differs in levels of indirection from 'struct _proto_node *'
packet-per.c(796) : warning C4024: 'dissect_per_boolean' : different
types for formal and actual parameter 7
packet-per.c(796) : warning C4700: local variable 'pi' used without
having been initialized
/ Regards, Peter
Index: C:/ethereal-win32-libs/epan/dissectors/packet-per.c
===================================================================
--- C:/ethereal-win32-libs/epan/dissectors/packet-per.c (revision 17425)
+++ C:/ethereal-win32-libs/epan/dissectors/packet-per.c (working copy)
@@ -793,7 +793,7 @@
DEBUG_ENTRY("dissect_per_constrained_integer");
if(has_extension){
gboolean extension_present;
- offset=dissect_per_boolean(tvb, offset, pinfo, tree, hf_per_extension_present_bit, &extension_present, pi);
+ offset=dissect_per_boolean(tvb, offset, pinfo, tree, hf_per_extension_present_bit, &extension_present, &pi);
if (!display_internal_per_fields) PROTO_ITEM_SET_HIDDEN(pi);
if(extension_present){
offset=dissect_per_integer(tvb, offset, pinfo, tree,