aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipmi-storage.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2015-02-15 17:58:12 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-18 00:05:38 +0000
commit3f765b3ef94fd6044279d47d0b30b46c344e5943 (patch)
tree1218985b912e24bc88d72617d61a7491911ee092 /epan/dissectors/packet-ipmi-storage.c
parentbe5e595da7beb355d385c6a9d96fdd1dad569e61 (diff)
Add a CF_FUNC macro for casting BASE_CUSTOM functions.
Add a CF_FUNC macro to match VALS, TFS, etc. This should help us to avoid the following warning: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] We could start adding DIAG_OFF+DIAG_ON everywhere but this seems to be more consistent with the other macros in proto.h. Update each instance of BASE_CUSTOM to use CF_FUNC. Adjust a dummy variable name generated by asn2wrs.py that was triggering an invalid error in checkhf.pl. Fix an encoding arguement in packet-elasticsearch.c found by fix-encoding-args.pl. Change-Id: Id0e75076c2d71736639d486f47b87bab84e07d22 Reviewed-on: https://code.wireshark.org/review/7150 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-ipmi-storage.c')
-rw-r--r--epan/dissectors/packet-ipmi-storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ipmi-storage.c b/epan/dissectors/packet-ipmi-storage.c
index cf674c0f5f..9fb8eec432 100644
--- a/epan/dissectors/packet-ipmi-storage.c
+++ b/epan/dissectors/packet-ipmi-storage.c
@@ -789,7 +789,7 @@ proto_register_ipmi_storage(void)
{ &hf_ipmi_stor_20_sdr_version,
{ "SDR Version",
- "ipmi.st20.sdr_version", FT_UINT8, BASE_CUSTOM, ipmi_fmt_version, 0, NULL, HFILL }},
+ "ipmi.st20.sdr_version", FT_UINT8, BASE_CUSTOM, CF_FUNC(ipmi_fmt_version), 0, NULL, HFILL }},
{ &hf_ipmi_stor_20_rec_count,
{ "Record Count",
"ipmi.st20.rec_count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
@@ -929,7 +929,7 @@ proto_register_ipmi_storage(void)
{ &hf_ipmi_stor_40_sel_version,
{ "SEL Version",
- "ipmi.st40.sel_version", FT_UINT8, BASE_CUSTOM, ipmi_fmt_version, 0, NULL, HFILL }},
+ "ipmi.st40.sel_version", FT_UINT8, BASE_CUSTOM, CF_FUNC(ipmi_fmt_version), 0, NULL, HFILL }},
{ &hf_ipmi_stor_40_entries,
{ "Entries",
"ipmi.st40.rec_count", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},