diff options
author | Guy Harris <gharris@sonic.net> | 2021-05-24 02:25:02 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-05-24 04:06:20 -0700 |
commit | 54e6b249c116c65289d2a248b558d359b23db75f (patch) | |
tree | 6570fe20318a5feeefa7c50c04140f7f0e556614 /wiretap/pcapng.c | |
parent | 96ed53bb6809b3a62aaef5b3737252485851307a (diff) |
wiretap: change wtapng_mandatory_section_t to wtapng_section_mandatory_t.
This is consistent with other names for block mandatory data structures.
Diffstat (limited to 'wiretap/pcapng.c')
-rw-r--r-- | wiretap/pcapng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c index a96ad67920..92ff63c1f1 100644 --- a/wiretap/pcapng.c +++ b/wiretap/pcapng.c @@ -688,7 +688,7 @@ pcapng_read_section_header_block(FILE_T fh, pcapng_block_header_t *bh, guint to_read, opt_cont_buf_len; pcapng_section_header_block_t shb; pcapng_option_header_t oh; - wtapng_mandatory_section_t* section_data; + wtapng_section_mandatory_t* section_data; guint8 *option_content = NULL; /* Allocate as large as the options block */ @@ -795,7 +795,7 @@ pcapng_read_section_header_block(FILE_T fh, pcapng_block_header_t *bh, section_info->version_minor = version_minor; wblock->block = wtap_block_create(WTAP_BLOCK_SECTION); - section_data = (wtapng_mandatory_section_t*)wtap_block_get_mandatory_data(wblock->block); + section_data = (wtapng_section_mandatory_t*)wtap_block_get_mandatory_data(wblock->block); /* 64bit section_length (currently unused) */ if (section_info->byte_swapped) { section_data->section_length = GUINT64_SWAP_LE_BE(shb.section_length); @@ -3553,7 +3553,7 @@ pcapng_write_section_header_block(wtap_dumper *wdh, int *err) shb.version_major = 1; shb.version_minor = 0; if (wdh_shb) { - wtapng_mandatory_section_t* section_data = (wtapng_mandatory_section_t*)wtap_block_get_mandatory_data(wdh_shb); + wtapng_section_mandatory_t* section_data = (wtapng_section_mandatory_t*)wtap_block_get_mandatory_data(wdh_shb); shb.section_length = section_data->section_length; } else { shb.section_length = -1; |