forked from osmocom/wireshark
Parenthesize HFILL_INIT macro properly
Change-Id: Ib1c347a290f57a1173c876de6e3c6cb6f5a1ca19 Reviewed-on: https://code.wireshark.org/review/18436 Reviewed-by: João Valverde <j@v6e.pt>
This commit is contained in:
parent
b5587379b7
commit
e226abdbb0
10
epan/proto.h
10
epan/proto.h
|
@ -594,11 +594,11 @@ struct _header_field_info {
|
|||
#define HFILL -1, 0, HF_REF_TYPE_NONE, -1, NULL
|
||||
|
||||
#define HFILL_INIT(hf) \
|
||||
hf.hfinfo.id = -1; \
|
||||
hf.hfinfo.parent = 0; \
|
||||
hf.hfinfo.ref_type = HF_REF_TYPE_NONE; \
|
||||
hf.hfinfo.same_name_prev_id = -1; \
|
||||
hf.hfinfo.same_name_next = NULL;
|
||||
(hf).hfinfo.id = -1; \
|
||||
(hf).hfinfo.parent = 0; \
|
||||
(hf).hfinfo.ref_type = HF_REF_TYPE_NONE; \
|
||||
(hf).hfinfo.same_name_prev_id = -1; \
|
||||
(hf).hfinfo.same_name_next = NULL;
|
||||
|
||||
/** Used when registering many fields at once, using proto_register_field_array() */
|
||||
typedef struct hf_register_info {
|
||||
|
|
Loading…
Reference in New Issue