aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-flip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-02-13 10:05:31 -0800
committerGuy Harris <guy@alum.mit.edu>2018-02-13 18:06:11 +0000
commitd332507ef2771f5c623a6768caadcabe6dd5583d (patch)
tree5df931581313141c9101b338c4876473b3add6c2 /epan/dissectors/packet-flip.c
parentbb9e26eb49ef33ca00a3f85fa15de862677688ec (diff)
Fix the "pointer to function that generates a label" values.
build_label_func is a pointer type, pointing to a function that can be used to generate a label for a "Decode As" entry. There's no need to have pointers to those pointers; have register_decode_as_next_proto() take a build_label_func, not a build_label_func *, as its last argument, assign that value rather than dereferencing it, get rid of unnecessary casts, and fix the comment in epan/decode_as.h for that argument. Change-Id: Idc3cf18204c543a2191b122c8129b362562c0ecd Reviewed-on: https://code.wireshark.org/review/25773 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-flip.c')
-rw-r--r--epan/dissectors/packet-flip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-flip.c b/epan/dissectors/packet-flip.c
index dfb68081b2..281ace7920 100644
--- a/epan/dissectors/packet-flip.c
+++ b/epan/dissectors/packet-flip.c
@@ -451,7 +451,7 @@ proto_register_flip(void)
prefs_register_obsolete_preference(flip_module, "forced_protocol");
prefs_register_obsolete_preference(flip_module, "forced_decode");
- subdissector_table = register_decode_as_next_proto(proto_flip, "FLIP Payload", "flip.payload", "FLIP payload", (build_label_func*)&flip_prompt);
+ subdissector_table = register_decode_as_next_proto(proto_flip, "FLIP Payload", "flip.payload", "FLIP payload", flip_prompt);
} /* proto_register_flip() */