Get rid of an unused structure member.

Change-Id: I2941bb7e6dc0fce3e1256af6e5e19d2997de5801
Reviewed-on: https://code.wireshark.org/review/7573
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-03-06 20:33:41 -08:00
parent b6ecff700f
commit 5e67ae78ba
57 changed files with 0 additions and 69 deletions

View File

@ -169,7 +169,6 @@ set_conv_gui_data(gpointer data, gpointer user_data)
ui_info.title = NULL; /* construct this from the protocol info? */ ui_info.title = NULL; /* construct this from the protocol info? */
ui_info.cli_string = g_string_free(conv_cmd_str, FALSE); ui_info.cli_string = g_string_free(conv_cmd_str, FALSE);
ui_info.tap_init_cb = dissector_conversation_init; ui_info.tap_init_cb = dissector_conversation_init;
ui_info.index = -1;
ui_info.nparams = 0; ui_info.nparams = 0;
ui_info.params = NULL; ui_info.params = NULL;
register_stat_tap_ui(&ui_info, table); register_stat_tap_ui(&ui_info, table);
@ -194,7 +193,6 @@ set_host_gui_data(gpointer data, gpointer user_data)
ui_info.title = NULL; /* construct this from the protocol info? */ ui_info.title = NULL; /* construct this from the protocol info? */
ui_info.cli_string = g_string_free(host_cmd_str, FALSE); ui_info.cli_string = g_string_free(host_cmd_str, FALSE);
ui_info.tap_init_cb = dissector_hostlist_init; ui_info.tap_init_cb = dissector_hostlist_init;
ui_info.index = -1;
ui_info.nparams = 0; ui_info.nparams = 0;
ui_info.params = NULL; ui_info.params = NULL;
register_stat_tap_ui(&ui_info, table); register_stat_tap_ui(&ui_info, table);

View File

@ -60,7 +60,6 @@ typedef struct _stat_tap_ui {
const char *title; /* title of statistic */ const char *title; /* title of statistic */
const char *cli_string; /* initial part of the "-z" argument for statistic */ const char *cli_string; /* initial part of the "-z" argument for statistic */
void (* tap_init_cb)(const char *, void*); /* callback to init function of the tap */ void (* tap_init_cb)(const char *, void*); /* callback to init function of the tap */
gint index; /* initiate this value always with "-1" */
size_t nparams; /* number of parameters */ size_t nparams; /* number of parameters */
tap_param *params; /* pointer to table of parameter info */ tap_param *params; /* pointer to table of parameter info */
} stat_tap_ui; } stat_tap_ui;

View File

@ -275,7 +275,6 @@ WSLUA_FUNCTION wslua_register_stat_cmd_arg(lua_State* L) {
ui_info.title = NULL; ui_info.title = NULL;
ui_info.cli_string = arg; ui_info.cli_string = arg;
ui_info.tap_init_cb = statcmd_init; ui_info.tap_init_cb = statcmd_init;
ui_info.index = -1;
ui_info.nparams = 0; ui_info.nparams = 0;
ui_info.params = NULL; ui_info.params = NULL;
register_stat_tap_ui(&ui_info, sc); register_stat_tap_ui(&ui_info, sc);

View File

@ -160,7 +160,6 @@ static stat_tap_ui afpstat_ui = {
NULL, NULL,
"afp,srt", "afp,srt",
afpstat_init, afpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -158,7 +158,6 @@ static stat_tap_ui ansi_a_stat_ui = {
NULL, NULL,
"ansi_a", "ansi_a",
ansi_a_stat_init, ansi_a_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -179,7 +179,6 @@ static stat_tap_ui dhcpstat_ui = {
NULL, NULL,
"bootp,stat", "bootp,stat",
dhcpstat_init, dhcpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -124,7 +124,6 @@ static stat_tap_ui camelcounter_ui = {
NULL, NULL,
"camel,counter", "camel,counter",
camelcounter_init, camelcounter_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -254,7 +254,6 @@ static stat_tap_ui camelsrt_ui = {
NULL, NULL,
"camel,srt", "camel,srt",
camelsrt_init, camelsrt_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -579,7 +579,6 @@ static stat_tap_ui comparestat_ui = {
NULL, NULL,
"compare", "compare",
comparestat_init, comparestat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -293,7 +293,6 @@ static stat_tap_ui dcerpcstat_ui = {
NULL, NULL,
"dcerpc,srt", "dcerpc,srt",
dcerpcstat_init, dcerpcstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -272,7 +272,6 @@ static stat_tap_ui diameteravp_ui = {
NULL, NULL,
"diameter,avp", "diameter,avp",
diameteravp_init, diameteravp_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -269,7 +269,6 @@ static stat_tap_ui expert_stat_ui = {
NULL, NULL,
"expert", "expert",
expert_stat_init, expert_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -1006,7 +1006,6 @@ static stat_tap_ui followTcp_ui = {
NULL, NULL,
STR_FOLLOW_TCP, STR_FOLLOW_TCP,
followTcp, followTcp,
-1,
0, 0,
NULL NULL
}; };
@ -1016,7 +1015,6 @@ static stat_tap_ui followUdp_ui = {
NULL, NULL,
STR_FOLLOW_UDP, STR_FOLLOW_UDP,
followUdp, followUdp,
-1,
0, 0,
NULL NULL
}; };
@ -1026,7 +1024,6 @@ static stat_tap_ui followSsl_ui = {
NULL, NULL,
STR_FOLLOW_SSL, STR_FOLLOW_SSL,
followSsl, followSsl,
-1,
0, 0,
NULL NULL
}; };

View File

@ -180,7 +180,6 @@ static void register_menu_cb(const char *name,
ui_info.title = NULL; ui_info.title = NULL;
ui_info.cli_string = name; ui_info.cli_string = name;
ui_info.tap_init_cb = init_funnel_cmd; ui_info.tap_init_cb = init_funnel_cmd;
ui_info.index = -1;
ui_info.nparams = 0; ui_info.nparams = 0;
ui_info.params = NULL; ui_info.params = NULL;
register_stat_tap_ui(&ui_info, mcb); register_stat_tap_ui(&ui_info, mcb);

View File

@ -344,7 +344,6 @@ static stat_tap_ui gsm_a_stat_ui = {
NULL, NULL,
"gsm_a", "gsm_a",
gsm_a_stat_init, gsm_a_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -403,7 +403,6 @@ static stat_tap_ui h225counter_ui = {
NULL, NULL,
"h225,counter", "h225,counter",
h225counter_init, h225counter_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -242,7 +242,6 @@ static stat_tap_ui h225rassrt_ui = {
NULL, NULL,
"h225,srt", "h225,srt",
h225rassrt_init, h225rassrt_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -139,7 +139,6 @@ static stat_tap_ui hosts_ui = {
NULL, NULL,
TAP_NAME, TAP_NAME,
hosts_init, hosts_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -325,7 +325,6 @@ static stat_tap_ui httpstat_ui = {
NULL, NULL,
"http,stat", "http,stat",
httpstat_init, httpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -314,7 +314,6 @@ static stat_tap_ui icmpstat_ui = {
NULL, NULL,
"icmp,srt", "icmp,srt",
icmpstat_init, icmpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -315,7 +315,6 @@ static stat_tap_ui icmpv6stat_ui = {
NULL, NULL,
"icmpv6,srt", "icmpv6,srt",
icmpv6stat_init, icmpv6stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -1524,7 +1524,6 @@ static stat_tap_ui iostat_ui = {
NULL, NULL,
"io,stat", "io,stat",
iostat_init, iostat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -545,7 +545,6 @@ static stat_tap_ui mac_lte_stat_ui = {
NULL, NULL,
"mac-lte,stat", "mac-lte,stat",
mac_lte_stat_init, mac_lte_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -136,7 +136,6 @@ static stat_tap_ui megacostat_ui = {
NULL, NULL,
"megaco,rtd", "megaco,rtd",
megacostat_init, megacostat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -221,7 +221,6 @@ static stat_tap_ui mgcpstat_ui = {
NULL, NULL,
"mgcp,rtd", "mgcp,rtd",
mgcpstat_init, mgcpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -134,7 +134,6 @@ static stat_tap_ui protocolinfo_ui = {
NULL, NULL,
"proto,colinfo", "proto,colinfo",
protocolinfo_init, protocolinfo_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -209,7 +209,6 @@ static stat_tap_ui protohierstat_ui = {
NULL, NULL,
"io,phs", "io,phs",
protohierstat_init, protohierstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -237,7 +237,6 @@ static stat_tap_ui radiusstat_ui = {
NULL, NULL,
"radius,rtd", "radius,rtd",
radiusstat_init, radiusstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -406,7 +406,6 @@ static stat_tap_ui rlc_lte_stat_ui = {
NULL, NULL,
"rlc-lte,stat", "rlc-lte,stat",
rlc_lte_stat_init, rlc_lte_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -230,7 +230,6 @@ static stat_tap_ui rpcprogs_ui = {
NULL, NULL,
"rpc,programs", "rpc,programs",
rpcprogs_init, rpcprogs_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -347,7 +347,6 @@ static stat_tap_ui rpcstat_ui = {
NULL, NULL,
"rpc,srt", "rpc,srt",
rpcstat_init, rpcstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -158,7 +158,6 @@ static stat_tap_ui rtp_streams_stat_ui = {
NULL, NULL,
"rtp,streams", "rtp,streams",
rtp_streams_stat_init, rtp_streams_stat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -277,7 +277,6 @@ static stat_tap_ui rtspstat_ui = {
NULL, NULL,
"rtsp,stat", "rtsp,stat",
rtspstat_init, rtspstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -258,7 +258,6 @@ static stat_tap_ui scsistat_ui = {
NULL, NULL,
"scsi,srt", "scsi,srt",
scsistat_init, scsistat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -250,7 +250,6 @@ static stat_tap_ui sctpstat_ui = {
NULL, NULL,
"sctp,stat", "sctp,stat",
sctpstat_init, sctpstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -437,7 +437,6 @@ static stat_tap_ui sipstat_ui = {
NULL, NULL,
"sip,stat", "sip,stat",
sipstat_init, sipstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -90,7 +90,6 @@ static stat_tap_ui smbsids_ui = {
NULL, NULL,
"smb,sids", "smb,sids",
smbsids_init, smbsids_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -259,7 +259,6 @@ static stat_tap_ui smbstat_ui = {
NULL, NULL,
"smb,srt", "smb,srt",
smbstat_init, smbstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -120,7 +120,6 @@ register_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_)
ui_info.title = NULL; ui_info.title = NULL;
ui_info.cli_string = cfg->pr->init_string; ui_info.cli_string = cfg->pr->init_string;
ui_info.tap_init_cb = init_stats_tree; ui_info.tap_init_cb = init_stats_tree;
ui_info.index = -1;
ui_info.nparams = 0; ui_info.nparams = 0;
ui_info.params = NULL; ui_info.params = NULL;
register_stat_tap_ui(&ui_info, NULL); register_stat_tap_ui(&ui_info, NULL);

View File

@ -78,7 +78,6 @@ static stat_tap_ui svstat_ui = {
NULL, NULL,
"sv", "sv",
svstat_init, svstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -281,7 +281,6 @@ static stat_tap_ui wspstat_ui = {
NULL, NULL,
"wsp,stat", "wsp,stat",
wspstat_init, wspstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -351,7 +351,6 @@ static stat_tap_ui ansi_map_ui = {
NULL, NULL,
"ansi_map", "ansi_map",
ansi_map_stat_gtk_init, ansi_map_stat_gtk_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -1054,7 +1054,6 @@ static stat_tap_ui compare_stat_ui = {
NULL, NULL,
"compare", "compare",
gtk_comparestat_init, gtk_comparestat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -715,7 +715,6 @@ static stat_tap_ui dcerpcstat_ui = {
NULL, NULL,
"dcerpc,srt", "dcerpc,srt",
gtk_dcerpcstat_init, gtk_dcerpcstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -1007,7 +1007,6 @@ static stat_tap_ui expert_comp_ui = {
NULL, NULL,
"expert_comp", "expert_comp",
expert_comp_init, expert_comp_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -388,7 +388,6 @@ static stat_tap_ui flow_graph_ui = {
NULL, NULL,
"flow_graph", "flow_graph",
flow_graph_init_tap, flow_graph_init_tap,
-1,
0, 0,
NULL NULL
}; };

View File

@ -628,7 +628,6 @@ static stat_tap_ui gsm_a_stat_bssmap_ui = {
NULL, NULL,
"gsm_a,bssmap", "gsm_a,bssmap",
gsm_a_stat_gtk_bssmap_init, gsm_a_stat_gtk_bssmap_init,
-1,
0, 0,
NULL NULL
}; };
@ -638,7 +637,6 @@ static stat_tap_ui gsm_a_stat_dtap_mm_ui = {
NULL, NULL,
"gsm_a,dtap_mm", "gsm_a,dtap_mm",
gsm_a_stat_gtk_dtap_mm_init, gsm_a_stat_gtk_dtap_mm_init,
-1,
0, 0,
NULL NULL
}; };
@ -648,7 +646,6 @@ static stat_tap_ui gsm_a_stat_dtap_rr_ui = {
NULL, NULL,
"gsm_a,dtap_rr", "gsm_a,dtap_rr",
gsm_a_stat_gtk_dtap_rr_init, gsm_a_stat_gtk_dtap_rr_init,
-1,
0, 0,
NULL NULL
}; };
@ -658,7 +655,6 @@ static stat_tap_ui gsm_a_stat_dtap_cc_ui = {
NULL, NULL,
"gsm_a,dtap_cc", "gsm_a,dtap_cc",
gsm_a_stat_gtk_dtap_cc_init, gsm_a_stat_gtk_dtap_cc_init,
-1,
0, 0,
NULL NULL
}; };
@ -668,7 +664,6 @@ static stat_tap_ui gsm_a_stat_dtap_gmm_ui = {
NULL, NULL,
"gsm_a,dtap_gmm", "gsm_a,dtap_gmm",
gsm_a_stat_gtk_dtap_gmm_init, gsm_a_stat_gtk_dtap_gmm_init,
-1,
0, 0,
NULL NULL
}; };
@ -678,7 +673,6 @@ static stat_tap_ui gsm_a_stat_dtap_sms_ui = {
NULL, NULL,
"gsm_a,dtap_sms", "gsm_a,dtap_sms",
gsm_a_stat_gtk_dtap_sms_init, gsm_a_stat_gtk_dtap_sms_init,
-1,
0, 0,
NULL NULL
}; };
@ -688,7 +682,6 @@ static stat_tap_ui gsm_a_stat_dtap_sm_ui = {
NULL, NULL,
"gsm_a,dtap_sm", "gsm_a,dtap_sm",
gsm_a_stat_gtk_dtap_sm_init, gsm_a_stat_gtk_dtap_sm_init,
-1,
0, 0,
NULL NULL
}; };
@ -698,7 +691,6 @@ static stat_tap_ui gsm_a_stat_dtap_ss_ui = {
NULL, NULL,
"gsm_a,dtap_ss", "gsm_a,dtap_ss",
gsm_a_stat_gtk_dtap_ss_init, gsm_a_stat_gtk_dtap_ss_init,
-1,
0, 0,
NULL NULL
}; };
@ -708,7 +700,6 @@ static stat_tap_ui gsm_a_stat_dtap_tp_ui = {
NULL, NULL,
"gsm_a,dtap_tp", "gsm_a,dtap_tp",
gsm_a_stat_gtk_dtap_tp_init, gsm_a_stat_gtk_dtap_tp_init,
-1,
0, 0,
NULL NULL
}; };
@ -718,7 +709,6 @@ static stat_tap_ui gsm_a_stat_sacch_rr_ui = {
NULL, NULL,
"gsm_a,sacch", "gsm_a,sacch",
gsm_a_stat_gtk_sacch_rr_init, gsm_a_stat_gtk_sacch_rr_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -451,7 +451,6 @@ static stat_tap_ui gsm_map_stat_ui = {
NULL, NULL,
"gsm_map", "gsm_map",
gsm_map_stat_gtk_init, gsm_map_stat_gtk_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -3830,7 +3830,6 @@ static stat_tap_ui iax2_analysis_ui = {
NULL, NULL,
"IAX2", /* XXX - should be "iax2" */ "IAX2", /* XXX - should be "iax2" */
iax2_analysis_init, iax2_analysis_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -2170,7 +2170,6 @@ static stat_tap_ui iostat_ui = {
NULL, NULL,
"io,stat", "io,stat",
iostat_init, iostat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -419,7 +419,6 @@ static stat_tap_ui mtp3_stat_ui = {
NULL, NULL,
"mtp3,msus", "mtp3,msus",
mtp3_stat_gtk_init, mtp3_stat_gtk_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -426,7 +426,6 @@ static stat_tap_ui rpcprogs_ui = {
NULL, NULL,
"rpc,programs", "rpc,programs",
gtk_rpcprogs_init, gtk_rpcprogs_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -524,7 +524,6 @@ static stat_tap_ui rpcstat_ui = {
NULL, NULL,
"rpc,srt", "rpc,srt",
gtk_rpcstat_init, gtk_rpcstat_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -4062,7 +4062,6 @@ static stat_tap_ui rtp_analysis_ui = {
NULL, NULL,
"rtp", "rtp",
rtp_analysis_init, rtp_analysis_init,
-1,
0, 0,
NULL NULL
}; };

View File

@ -76,7 +76,6 @@ register_param_stat(tap_param_dlg *info, const char *name,
ui_info.title = full_name; ui_info.title = full_name;
ui_info.cli_string = info->init_string; ui_info.cli_string = info->init_string;
ui_info.tap_init_cb = info->tap_init_cb; ui_info.tap_init_cb = info->tap_init_cb;
ui_info.index = -1;
ui_info.nparams = info->nparams; ui_info.nparams = info->nparams;
ui_info.params = info->params; ui_info.params = info->params;
register_stat_tap_ui(&ui_info, NULL); register_stat_tap_ui(&ui_info, NULL);

View File

@ -946,7 +946,6 @@ static stat_tap_ui voip_calls_ui = {
NULL, NULL,
"voip,calls", "voip,calls",
voip_calls_dlg_init_taps, voip_calls_dlg_init_taps,
-1,
0, 0,
NULL NULL
}; };

View File

@ -2179,7 +2179,6 @@ static stat_tap_ui io_stat_ui = {
NULL, NULL,
"io,stat", "io,stat",
io_graph_init, io_graph_init,
-1,
0, 0,
NULL NULL
}; };