aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-06-17 15:04:44 -0700
committerGuy Harris <gharris@sonic.net>2021-06-17 15:04:44 -0700
commit9773b5a4a78ad25865df79ef9b5cd6ddfb3f1b67 (patch)
tree7e16baa5495cc5b2564dc974a2d19a97178983f4 /wiretap
parent6eb3703379e027be51636d7f173ed50843a05c34 (diff)
Just call the block type for custom blocks WTAP_BLOCK_CUSTOM.
No need to add a redundant "_BLOCK" at the end.
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/pcapng.c2
-rw-r--r--wiretap/wtap_opttypes.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c
index caeb3e7f50..e611f2e9e2 100644
--- a/wiretap/pcapng.c
+++ b/wiretap/pcapng.c
@@ -5475,7 +5475,7 @@ static const struct supported_block_type pcapng_blocks_supported[] = {
{ WTAP_BLOCK_SYSTEMD_JOURNAL_EXPORT, MULTIPLE_BLOCKS_SUPPORTED, OPTION_TYPES_SUPPORTED(systemd_journal_export_block_options_supported) },
/* Multiple custom blocks. */
- { WTAP_BLOCK_CUSTOM_BLOCK, MULTIPLE_BLOCKS_SUPPORTED, NO_OPTIONS_SUPPORTED },
+ { WTAP_BLOCK_CUSTOM, MULTIPLE_BLOCKS_SUPPORTED, NO_OPTIONS_SUPPORTED },
};
static const struct file_type_subtype_info pcapng_info = {
diff --git a/wiretap/wtap_opttypes.h b/wiretap/wtap_opttypes.h
index 37e17f575c..2f21f9c1d1 100644
--- a/wiretap/wtap_opttypes.h
+++ b/wiretap/wtap_opttypes.h
@@ -168,7 +168,7 @@ typedef enum {
WTAP_BLOCK_FT_SPECIFIC_REPORT,
WTAP_BLOCK_FT_SPECIFIC_EVENT,
WTAP_BLOCK_SYSTEMD_JOURNAL_EXPORT,
- WTAP_BLOCK_CUSTOM_BLOCK,
+ WTAP_BLOCK_CUSTOM,
MAX_WTAP_BLOCK_TYPE_VALUE
} wtap_block_type_t;