diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-02-17 10:03:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-02-17 10:03:34 +0000 |
commit | c922673498fe9fc1233553d542c4310a4dee6be3 (patch) | |
tree | bf70729a87cc23f53038b470884bf21e92ae89ef /asn1 | |
parent | bb3d513158cfac6d5bef4e51b88ef76964e63b58 (diff) |
Squelch some compiler warnings.
Fix indentation.
svn path=/trunk/; revision=17331
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/rnsap/packet-rnsap-template.c | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/asn1/rnsap/packet-rnsap-template.c b/asn1/rnsap/packet-rnsap-template.c index 229a0744a0..a52eb59838 100644 --- a/asn1/rnsap/packet-rnsap-template.c +++ b/asn1/rnsap/packet-rnsap-template.c @@ -593,8 +593,8 @@ static int dissect_rnsap_InitiatingMessageValueValue(tvbuff_t *tvb, int offset, proto_tree *value_tree = NULL; guint length; - value_item = proto_tree_add_item(tree, hf_rnsap_initiatingMessageValue, tvb, 0, -1, FALSE); - value_tree = proto_item_add_subtree(value_item, ett_rnsap_initiatingMessageValue); + value_item = proto_tree_add_item(tree, hf_rnsap_initiatingMessageValue, tvb, 0, -1, FALSE); + value_tree = proto_item_add_subtree(value_item, ett_rnsap_initiatingMessageValue); offset = dissect_per_length_determinant(tvb, offset, pinfo, value_tree, hf_rnsap_pdu_length, &length); proto_item_set_len(value_item,length); @@ -684,21 +684,21 @@ static int dissect_rnsap_InitiatingMessageValueValue(tvbuff_t *tvb, int offset, break; case RNSAP_ID_SYNCHRONISEDRADIOLINKRECONFIGURATIONPREPARATION: /* 23 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_synchronisedRadioLinkReconfigurationPreparation(tvb, offset, pinfo, value_tree); + offset = dissect_id_synchronisedRadioLinkReconfigurationPreparation(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_synchronisedRadioLinkReconfigurationPreparation_TDD(tvb, offset, pinfo, value_tree); } break; case RNSAP_ID_UNSYNCHRONISEDRADIOLINKRECONFIGURATION: /* 24 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_unSynchronisedRadioLinkReconfiguration(tvb, offset, pinfo, value_tree); + offset = dissect_id_unSynchronisedRadioLinkReconfiguration(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_unSynchronisedRadioLinkReconfiguration_TDD(tvb, offset, pinfo, value_tree); } break; case RNSAP_ID_UPLINKSIGNALLINGTRANSFER: /* 25 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_uplinkSignallingTransfer(tvb, offset, pinfo, value_tree); + offset = dissect_id_uplinkSignallingTransfer(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_uplinkSignallingTransfer_TDD(tvb, offset, pinfo, value_tree); } @@ -732,7 +732,7 @@ static int dissect_rnsap_InitiatingMessageValueValue(tvbuff_t *tvb, int offset, break; case RNSAP_ID_RADIOLINKACTIVATION: /* 36 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_radioLinkActivation(tvb, offset, pinfo, value_tree); + offset = dissect_id_radioLinkActivation(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_radioLinkActivation_TDD(tvb, offset, pinfo, value_tree); } @@ -742,7 +742,7 @@ static int dissect_rnsap_InitiatingMessageValueValue(tvbuff_t *tvb, int offset, break; case RNSAP_ID_RADIOLINKPARAMETERUPDATE: /* 38 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_radioLinkParameterUpdate(tvb, offset, pinfo, value_tree); + offset = dissect_id_radioLinkParameterUpdate(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_radioLinkParameterUpdate_TDD(tvb, offset, pinfo, value_tree); } @@ -787,8 +787,8 @@ static int dissect_rnsap_SuccessfulOutcomeValueValue(tvbuff_t *tvb, int offset, proto_tree *value_tree = NULL; guint length; - value_item = proto_tree_add_item(tree, hf_rnsap_successfulOutcomeValue, tvb, 0, -1, FALSE); - value_tree = proto_item_add_subtree(value_item, ett_rnsap_initiatingMessageValue); + value_item = proto_tree_add_item(tree, hf_rnsap_successfulOutcomeValue, tvb, 0, -1, FALSE); + value_tree = proto_item_add_subtree(value_item, ett_rnsap_initiatingMessageValue); offset = dissect_per_length_determinant(tvb, offset, pinfo, value_tree, hf_rnsap_pdu_length, &length); proto_item_set_len(value_item,length); @@ -797,7 +797,7 @@ static int dissect_rnsap_SuccessfulOutcomeValueValue(tvbuff_t *tvb, int offset, switch(ProcedureCode){ case RNSAP_ID_COMMONTRANSPORTCHANNELRESOURCESINITIALISATION: if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_commonTransportChannelResourcesInitialisation1(tvb, offset, pinfo, value_tree); + offset = dissect_id_commonTransportChannelResourcesInitialisation1(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_commonTransportChannelResourcesInitialisation_TDD(tvb, offset, pinfo, value_tree); } @@ -820,7 +820,7 @@ static int dissect_rnsap_SuccessfulOutcomeValueValue(tvbuff_t *tvb, int offset, break; case RNSAP_ID_RADIOLINKSETUP: /* 19 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_radioLinkSetup1(tvb, offset, pinfo, value_tree); + offset = dissect_id_radioLinkSetup1(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_radioLinkSetupTdd1(tvb, offset, pinfo, value_tree); } @@ -864,8 +864,8 @@ static int dissect_rnsap_UnsuccessfulOutcomeValueValue(tvbuff_t *tvb, int offset proto_tree *value_tree = NULL; guint length; - value_item = proto_tree_add_item(tree, hf_rnsap_unsuccessfulOutcomeValue, tvb, 0, -1, FALSE); - value_tree = proto_item_add_subtree(value_item, ett_rnsap_UnsuccessfulOutcomeValue); + value_item = proto_tree_add_item(tree, hf_rnsap_unsuccessfulOutcomeValue, tvb, 0, -1, FALSE); + value_tree = proto_item_add_subtree(value_item, ett_rnsap_UnsuccessfulOutcomeValue); offset = dissect_per_length_determinant(tvb, offset, pinfo, value_tree, hf_rnsap_pdu_length, &length); proto_item_set_len(value_item,length); @@ -890,13 +890,13 @@ static int dissect_rnsap_UnsuccessfulOutcomeValueValue(tvbuff_t *tvb, int offset break; case RNSAP_ID_RADIOLINKSETUP: /* 19 */ if (ddMode==RNSAP_FDD){ - offset = offset = dissect_id_radioLinkSetup2(tvb, offset, pinfo, value_tree); + offset = dissect_id_radioLinkSetup2(tvb, offset, pinfo, value_tree); }else{ offset = dissect_id_radioLinkSetupTdd2(tvb, offset, pinfo, value_tree); } break; case RNSAP_ID_SYNCHRONISEDRADIOLINKRECONFIGURATIONPREPARATION: /* 23 */ - offset = offset = dissect_id_synchronisedRadioLinkReconfigurationPreparation2(tvb, offset, pinfo, value_tree); + offset = dissect_id_synchronisedRadioLinkReconfigurationPreparation2(tvb, offset, pinfo, value_tree); break; case RNSAP_ID_UNSYNCHRONISEDRADIOLINKRECONFIGURATION: /* 24 */ if (ddMode==RNSAP_FDD){ @@ -928,8 +928,8 @@ static int dissect_rnsap_ProtocolIEValueValue(tvbuff_t *tvb, int offset, packet_ proto_tree *value_tree = NULL; guint length; - value_item = proto_tree_add_item(tree, hf_rnsap_value, tvb, 0, -1, FALSE); - value_tree = proto_item_add_subtree(value_item, ett_rnsap_ProtocolIEValueValue); + value_item = proto_tree_add_item(tree, hf_rnsap_value, tvb, 0, -1, FALSE); + value_tree = proto_item_add_subtree(value_item, ett_rnsap_ProtocolIEValueValue); offset = dissect_per_length_determinant(tvb, offset, pinfo, value_tree, hf_rnsap_IE_length, &length); proto_item_set_len(value_item,length); @@ -1950,7 +1950,6 @@ dissect_rnsap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_item *rnsap_item = NULL; proto_tree *rnsap_tree = NULL; - int offset = 0; top_tree = tree; @@ -1958,9 +1957,9 @@ dissect_rnsap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "RNSAP"); - /* create the rnsap protocol tree */ - rnsap_item = proto_tree_add_item(tree, proto_rnsap, tvb, 0, -1, FALSE); - rnsap_tree = proto_item_add_subtree(rnsap_item, ett_rnsap); + /* create the rnsap protocol tree */ + rnsap_item = proto_tree_add_item(tree, proto_rnsap, tvb, 0, -1, FALSE); + rnsap_tree = proto_item_add_subtree(rnsap_item, ett_rnsap); dissect_RNSAP_PDU_PDU(tvb, pinfo, rnsap_tree); } |