diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-04 14:59:18 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-04 14:59:18 +0000 |
commit | 7a3721dceaa7052981aaa7e28c1f664d58d996b9 (patch) | |
tree | edc246f7e04d019899085f85a67c67edcb7bf660 | |
parent | 62de58c913ff8e760eba38b1f26e1d3879e62543 (diff) |
Whitespace changes
svn path=/trunk/; revision=30301
-rw-r--r-- | asn1/charging_ase/packet-charging_ase-template.c | 33 | ||||
-rw-r--r-- | epan/dissectors/packet-charging_ase.c | 43 |
2 files changed, 27 insertions, 49 deletions
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); - - } diff --git a/epan/dissectors/packet-charging_ase.c b/epan/dissectors/packet-charging_ase.c index 595b04f0a1..55376b1892 100644 --- a/epan/dissectors/packet-charging_ase.c +++ b/epan/dissectors/packet-charging_ase.c @@ -30,8 +30,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" @@ -47,7 +45,6 @@ #include "packet-ber.h" #include "packet-charging_ase.h" - #define PNAME "Charging ASE" #define PSNAME "ChargingASE" #define PFNAME "chargingase" @@ -122,7 +119,7 @@ static int hf_charging_ase_T_tariffControlIndicators_non_cyclicTariff = -1; static int hf_charging_ase_T_tariffControlIndicators_01_non_cyclicTariff = -1; /*--- End of included file: packet-charging_ase-hf.c ---*/ -#line 51 "packet-charging_ase-template.c" +#line 48 "packet-charging_ase-template.c" static int ett_charging_ase = -1; @@ -160,10 +157,9 @@ static gint ett_charging_ase_T_tariffControlIndicators_01 = -1; static gint ett_charging_ase_ChargingReferenceIdentification = -1; /*--- End of included file: packet-charging_ase-ett.c ---*/ -#line 54 "packet-charging_ase-template.c" - -static dissector_handle_t charging_ase_handle; +#line 51 "packet-charging_ase-template.c" +static dissector_handle_t charging_ase_handle; /*--- Included file: packet-charging_ase-fn.c ---*/ @@ -847,27 +843,24 @@ int dissect_charging_ase_ChargingMessageType_PDU(tvbuff_t *tvb _U_, packet_info /*--- End of included file: packet-charging_ase-fn.c ---*/ -#line 59 "packet-charging_ase-template.c" +#line 55 "packet-charging_ase-template.c" static void dissect_charging_ase(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - proto_item *it; - proto_tree *tr; + 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); - - 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) { @@ -1122,11 +1115,11 @@ proto_register_charging_ase(void) NULL, HFILL }}, /*--- End of included file: packet-charging_ase-hfarr.c ---*/ -#line 85 "packet-charging_ase-template.c" +#line 78 "packet-charging_ase-template.c" }; /* List of subtrees */ - static gint *ett[] = { + static gint *ett[] = { &ett_charging_ase, /*--- Included file: packet-charging_ase-ettarr.c ---*/ @@ -1163,9 +1156,8 @@ proto_register_charging_ase(void) &ett_charging_ase_ChargingReferenceIdentification, /*--- End of included file: packet-charging_ase-ettarr.c ---*/ -#line 91 "packet-charging_ase-template.c" - }; - +#line 84 "packet-charging_ase-template.c" + }; proto_charging_ase = proto_register_protocol(PNAME, PSNAME, PFNAME); @@ -1177,9 +1169,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); - - } |