From 4f4769adf626ec2601e3488efbc2e2d57d55762c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 13 Jan 2016 01:40:35 -0800 Subject: Move structure definition outside another structure definition. I guess the ability to define a structure inside another structure is a C-ism discarded by C++, so it causes warnings if you disallow stuff that can't be handled by a C++ compiler, as we do. Change-Id: I8cf52af0424708eb663ab6dbfecbf317fe3bccdb Reviewed-on: https://code.wireshark.org/review/13257 Reviewed-by: Guy Harris --- wiretap/wtap.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'wiretap') diff --git a/wiretap/wtap.h b/wiretap/wtap.h index c34547d491..5c7b7afa52 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -933,15 +933,17 @@ struct erf_ehdr { #define MAX_ERF_EHDR 8 +struct wtap_erf_eth_hdr { + guint8 offset; + guint8 pad; +}; + struct erf_mc_phdr { struct erf_phdr phdr; struct erf_ehdr ehdr_list[MAX_ERF_EHDR]; union { - struct wtap_erf_eth_hdr { - guint8 offset; - guint8 pad; - } eth_hdr; + struct wtap_erf_eth_hdr eth_hdr; guint32 mc_hdr; guint32 aal2_hdr; } subhdr; -- cgit v1.2.3