aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bthci_cmd.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-bthci_cmd.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-bthci_cmd.c')
-rw-r--r--epan/dissectors/packet-bthci_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bthci_cmd.c b/epan/dissectors/packet-bthci_cmd.c
index 62d61f292a..0e16f23e52 100644
--- a/epan/dissectors/packet-bthci_cmd.c
+++ b/epan/dissectors/packet-bthci_cmd.c
@@ -7224,7 +7224,7 @@ proto_register_bthci_cmd(void)
"Version of protocol supported by this dissector.");
vendor_dissector_table = register_decode_as_next_proto(proto_bthci_cmd, "Vendor", "bthci_cmd.vendor",
- "BT HCI Vendor", (build_label_func*)&bthci_cmd_vendor_prompt);
+ "BT HCI Vendor", bthci_cmd_vendor_prompt);
}