aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-i2c.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-i2c.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-i2c.c')
-rw-r--r--epan/dissectors/packet-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-i2c.c b/epan/dissectors/packet-i2c.c
index b4bbe5a794..c09f30d359 100644
--- a/epan/dissectors/packet-i2c.c
+++ b/epan/dissectors/packet-i2c.c
@@ -233,7 +233,7 @@ proto_register_i2c(void)
m = prefs_register_protocol(proto_i2c, NULL);
prefs_register_obsolete_preference(m, "type");
- subdissector_table = register_decode_as_next_proto(proto_i2c, "I2C Message", "i2c.message", "I2C messages dissector", (build_label_func*)&i2c_prompt);
+ subdissector_table = register_decode_as_next_proto(proto_i2c, "I2C Message", "i2c.message", "I2C messages dissector", i2c_prompt);
}
void