From 7a3721dceaa7052981aaa7e28c1f664d58d996b9 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sun, 4 Oct 2009 14:59:18 +0000 Subject: Whitespace changes svn path=/trunk/; revision=30301 --- asn1/charging_ase/packet-charging_ase-template.c | 33 ++++++++---------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'asn1') diff --git a/asn1/charging_ase/packet-charging_ase-template.c b/asn1/charging_ase/packet-charging_ase-template.c index bb1746a506..4261f2d20a 100644 --- a/asn1/charging_ase/packet-charging_ase-template.c +++ b/asn1/charging_ase/packet-charging_ase-template.c @@ -22,8 +22,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * References: ETSI ES 201 296 V1.3.1 (2003-04) */ - - #ifdef HAVE_CONFIG_H #include "config.h" @@ -39,7 +37,6 @@ #include "packet-ber.h" #include "packet-charging_ase.h" - #define PNAME "Charging ASE" #define PSNAME "ChargingASE" #define PFNAME "chargingase" @@ -52,30 +49,26 @@ static int proto_charging_ase = -1; static int ett_charging_ase = -1; #include "packet-charging_ase-ett.c" -static dissector_handle_t charging_ase_handle; - +static dissector_handle_t charging_ase_handle; #include "packet-charging_ase-fn.c" static void dissect_charging_ase(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - proto_item *it; - proto_tree *tr; - - it=proto_tree_add_protocol_format(tree, proto_charging_ase, tvb, 0, tvb_length(tvb), "Charging ASE"); - tr=proto_item_add_subtree(it, ett_charging_ase); + proto_item *it; + proto_tree *tr; - if(tvb_length(tvb)>0) - { - dissect_charging_ase_ChargingMessageType_PDU(tvb , pinfo, tr); - } - + it=proto_tree_add_protocol_format(tree, proto_charging_ase, tvb, 0, tvb_length(tvb), "Charging ASE"); + tr=proto_item_add_subtree(it, ett_charging_ase); + if(tvb_length(tvb)>0) + { + dissect_charging_ase_ChargingMessageType_PDU(tvb , pinfo, tr); + } } /* Register all the bits needed with the filtering engine */ - void proto_register_charging_ase(void) { @@ -85,11 +78,10 @@ proto_register_charging_ase(void) }; /* List of subtrees */ - static gint *ett[] = { + static gint *ett[] = { &ett_charging_ase, #include "packet-charging_ase-ettarr.c" - }; - + }; proto_charging_ase = proto_register_protocol(PNAME, PSNAME, PFNAME); @@ -101,9 +93,6 @@ proto_register_charging_ase(void) void proto_reg_handoff_charging_ase(void) { - charging_ase_handle = create_dissector_handle(dissect_charging_ase, proto_charging_ase); - - } -- cgit v1.2.3