diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-30 10:37:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-30 10:37:37 +0000 |
commit | a977e68fbc743f2c9669644dfae8d1567f3db6e0 (patch) | |
tree | 4caea1aba6c42d17f2db17d801174ddca032163a /plugins | |
parent | 1c715bb383e0fe1fd5c66a7851defc47e5fd6078 (diff) |
Mark the "plugin_address_table_t *" argument to "plugin_init()" as
unused if PLUGINS_NEED_ADDRESS_TABLE isn't defined.
Get rid of some other unused arguments.
svn path=/trunk/; revision=5312
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mgcp/packet-mgcp.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c index 417c69ee9f..77c94fffbf 100644 --- a/plugins/mgcp/packet-mgcp.c +++ b/plugins/mgcp/packet-mgcp.c @@ -2,7 +2,7 @@ * Routines for mgcp packet disassembly * RFC 2705 * - * $Id: packet-mgcp.c,v 1.31 2002/01/21 07:37:49 guy Exp $ + * $Id: packet-mgcp.c,v 1.32 2002/04/30 10:37:37 guy Exp $ * * Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu> * @@ -170,12 +170,10 @@ static gint tvb_parse_param(tvbuff_t *tvb, gint offset, gint maxlength, static void dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,proto_tree *mgcp_tree, proto_tree *ti); static void dissect_mgcp_firstline(tvbuff_t *tvb, - packet_info* pinfo, proto_tree *tree); static void dissect_mgcp_params(tvbuff_t *tvb, - packet_info* pinfo, proto_tree *tree); -static void mgcp_raw_text_add(tvbuff_t *tvb, packet_info *pinfo, +static void mgcp_raw_text_add(tvbuff_t *tvb, proto_tree *tree); /* @@ -323,7 +321,7 @@ dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if( sectionlen > 0){ dissect_mgcp_firstline(tvb_new_subset(tvb, tvb_sectionbegin, sectionlen,-1), - pinfo, mgcp_tree); + mgcp_tree); } tvb_sectionbegin = tvb_sectionend; @@ -333,7 +331,7 @@ dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, &tvb_sectionend); dissect_mgcp_params(tvb_new_subset(tvb, tvb_sectionbegin, sectionlen, -1), - pinfo, mgcp_tree); + mgcp_tree); tvb_sectionbegin = tvb_sectionend; } @@ -347,7 +345,7 @@ dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* Do we want to display the raw text of our MGCP packet? */ if(global_mgcp_raw_text){ - mgcp_raw_text_add(tvb_new_subset(tvb,0,tvb_len,-1),pinfo, + mgcp_raw_text_add(tvb_new_subset(tvb,0,tvb_len,-1), mgcp_tree); } @@ -363,12 +361,10 @@ dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* * Add the raw text of the message to the dissect tree if appropriate - * preferences are specified. The args and returns follow the general - * convention for proto dissectors (although this is NOT a proto dissector). + * preferences are specified. */ -static void mgcp_raw_text_add(tvbuff_t *tvb, packet_info *pinfo, - proto_tree *tree){ +static void mgcp_raw_text_add(tvbuff_t *tvb, proto_tree *tree){ gint tvb_linebegin,tvb_lineend,tvb_len,linelen; @@ -877,7 +873,6 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf){ * from the first line of the MGCP message. */ static void dissect_mgcp_firstline(tvbuff_t *tvb, - packet_info *pinfo, proto_tree *tree){ gint tvb_current_offset,tvb_previous_offset,tvb_len,tvb_current_len; gint tokennum, tokenlen; @@ -1007,8 +1002,7 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, * tree - The tree from which to hang the structured information parsed * from the parameters of the MGCP message. */ -static void dissect_mgcp_params(tvbuff_t *tvb, packet_info *pinfo, - proto_tree *tree){ +static void dissect_mgcp_params(tvbuff_t *tvb, proto_tree *tree){ int linelen, tokenlen, *my_param; gint tvb_lineend,tvb_current_len, tvb_linebegin,tvb_len; gint tvb_tokenbegin; @@ -1261,7 +1255,11 @@ plugin_reg_handoff(void){ } G_MODULE_EXPORT void -plugin_init(plugin_address_table_t *pat){ +plugin_init(plugin_address_table_t *pat +#ifndef PLUGINS_NEED_ADDRESS_TABLE +_U_ +#endif +){ /* initialise the table of pointers needed in Win32 DLLs */ plugin_address_table_init(pat); /* register the new protocol, protocol fields, and subtrees */ |