aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netscaler.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-02-23 19:10:35 -0800
committerGuy Harris <gharris@sonic.net>2021-02-23 20:39:16 -0800
commited86f51e49e2b1ca64525bd14698528a50f3bbb4 (patch)
tree65f5a140a7b0c13265184c50a9c974b5de2f83a2 /wiretap/netscaler.c
parent4cdc6ee5730ca32702d62b5959a3146ce9591596 (diff)
wiretap: rename wtap_register_file_type_subtypes().
It only registers one file type/subtype, so rename it to wtap_register_file_type_subtype(). That will also force plugins to be recompiled; that will produce compile errors for some plugins that didn't change to match the new contents of the file_type_subtype_info structure. Also check to make sure that the registered file type/subtype supports at least one type of block; a file type/subtype that doesn't return *any* blocks and doesn't permit *any* block types to be written is not very useful. That should also catch most if not all other plugins that didn't change to match the new contents of the file_type_subtype_info structure. Don't make errors registering a file type/subtype fatal; just complain, don't register the bogus file type/subtype, and drive on.
Diffstat (limited to 'wiretap/netscaler.c')
-rw-r--r--wiretap/netscaler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/netscaler.c b/wiretap/netscaler.c
index af3a6b2f68..76df5c27f2 100644
--- a/wiretap/netscaler.c
+++ b/wiretap/netscaler.c
@@ -2469,10 +2469,10 @@ static const struct file_type_subtype_info nstrace_3_5_info = {
void register_netscaler(void)
{
- nstrace_1_0_file_type_subtype = wtap_register_file_type_subtypes(&nstrace_1_0_info);
- nstrace_2_0_file_type_subtype = wtap_register_file_type_subtypes(&nstrace_2_0_info);
- nstrace_3_0_file_type_subtype = wtap_register_file_type_subtypes(&nstrace_3_0_info);
- nstrace_3_5_file_type_subtype = wtap_register_file_type_subtypes(&nstrace_3_5_info);
+ nstrace_1_0_file_type_subtype = wtap_register_file_type_subtype(&nstrace_1_0_info);
+ nstrace_2_0_file_type_subtype = wtap_register_file_type_subtype(&nstrace_2_0_info);
+ nstrace_3_0_file_type_subtype = wtap_register_file_type_subtype(&nstrace_3_0_info);
+ nstrace_3_5_file_type_subtype = wtap_register_file_type_subtype(&nstrace_3_5_info);
/*
* Register names for backwards compatibility with the