aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-12 01:01:19 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-12 01:01:19 +0000
commit2fcce4b6c423f076a07fad957a1fe14df9afc4e2 (patch)
tree62a8002ca2960bc4169c1b5b517a14614fc6cf89 /epan
parentef1bfb6f9b68feb522101d77b5c1a85c56a67d56 (diff)
Fix some more signed vs. unsigned warnings.
svn path=/trunk/; revision=14903
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ftam.c79
-rw-r--r--epan/dissectors/packet-spnego.c7
-rw-r--r--epan/dissectors/packet-tcap.c42
3 files changed, 66 insertions, 62 deletions
diff --git a/epan/dissectors/packet-ftam.c b/epan/dissectors/packet-ftam.c
index c183cb0c60..b758d8b1f1 100644
--- a/epan/dissectors/packet-ftam.c
+++ b/epan/dissectors/packet-ftam.c
@@ -680,7 +680,7 @@ dissect_ftam_Protocol_Version(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -706,7 +706,7 @@ dissect_ftam_Implementation_Information(gboolean implicit_tag _U_, tvbuff_t *tvb
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -727,6 +727,7 @@ static int dissect_implementation_information(packet_info *pinfo, proto_tree *tr
}
+
static int
dissect_ftam_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
@@ -766,7 +767,7 @@ dissect_ftam_Service_Class(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -810,7 +811,7 @@ dissect_ftam_Functional_Units(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -844,7 +845,7 @@ dissect_ftam_Attribute_Groups(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -894,7 +895,7 @@ dissect_ftam_FTAM_Quality_of_Service(gboolean implicit_tag _U_, tvbuff_t *tvb, i
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -920,7 +921,7 @@ dissect_ftam_Document_Type_Name(gboolean implicit_tag _U_, tvbuff_t *tvb, int of
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -946,7 +947,7 @@ dissect_ftam_Abstract_Syntax_Name(gboolean implicit_tag _U_, tvbuff_t *tvb, int
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1005,7 +1006,7 @@ dissect_ftam_Contents_Type_List(gboolean implicit_tag _U_, tvbuff_t *tvb, int of
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1031,7 +1032,7 @@ dissect_ftam_User_Identity(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1062,7 +1063,7 @@ dissect_ftam_Account(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packe
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1119,10 +1120,11 @@ static int dissect_Pathname_item(packet_info *pinfo, proto_tree *tree, tvbuff_t
}
+
static int
dissect_ftam_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,
- NULL);
+ NULL);
return offset;
}
@@ -1148,7 +1150,7 @@ dissect_ftam_Password(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, pack
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1351,7 +1353,7 @@ dissect_ftam_State_Result(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1384,7 +1386,7 @@ dissect_ftam_Action_Result(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1480,7 +1482,7 @@ dissect_ftam_Diagnostic(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, pa
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1571,7 +1573,7 @@ dissect_ftam_Charging(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, pack
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1753,7 +1755,7 @@ dissect_ftam_Select_Attributes(gboolean implicit_tag _U_, tvbuff_t *tvb, int off
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1789,7 +1791,7 @@ dissect_ftam_Access_Request(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1845,7 +1847,7 @@ dissect_ftam_Access_Passwords(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1901,7 +1903,7 @@ dissect_ftam_Path_Access_Passwords(gboolean implicit_tag _U_, tvbuff_t *tvb, int
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -1979,7 +1981,7 @@ dissect_ftam_Concurrency_Control(gboolean implicit_tag _U_, tvbuff_t *tvb, int o
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -2022,12 +2024,13 @@ static int dissect_f_select_request_impl(packet_info *pinfo, proto_tree *tree, t
}
+
static int
dissect_ftam_Referent_Indicator(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -2208,7 +2211,7 @@ dissect_ftam_Constraint_Set_Name(gboolean implicit_tag _U_, tvbuff_t *tvb, int o
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -2752,7 +2755,7 @@ dissect_ftam_Create_Attributes(gboolean implicit_tag _U_, tvbuff_t *tvb, int off
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3094,7 +3097,7 @@ dissect_ftam_Read_Attributes(gboolean implicit_tag _U_, tvbuff_t *tvb, int offse
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3202,7 +3205,7 @@ dissect_ftam_Change_Attributes(gboolean implicit_tag _U_, tvbuff_t *tvb, int off
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3308,7 +3311,7 @@ dissect_ftam_Activity_Identifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int o
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3379,7 +3382,7 @@ dissect_ftam_Degree_Of_Overlap(gboolean implicit_tag _U_, tvbuff_t *tvb, int off
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3729,7 +3732,7 @@ dissect_ftam_FADU_Identity(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3761,7 +3764,7 @@ dissect_ftam_FADU_Lock(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, pac
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -3964,7 +3967,7 @@ dissect_ftam_Access_Context(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -4071,7 +4074,7 @@ dissect_ftam_Request_Type(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -4853,7 +4856,7 @@ dissect_ftam_Attribute_Value_Assertions(gboolean implicit_tag _U_, tvbuff_t *tvb
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -4919,7 +4922,7 @@ dissect_ftam_Scope(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -4968,7 +4971,7 @@ dissect_ftam_Objects_Attributes_List(gboolean implicit_tag _U_, tvbuff_t *tvb, i
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -5061,7 +5064,7 @@ dissect_ftam_Request_Operation_Result(gboolean implicit_tag _U_, tvbuff_t *tvb,
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
@@ -5130,7 +5133,7 @@ dissect_ftam_Operation_Result(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
if(!implicit_tag){
/* XXX asn2eth can not yet handle tagged assignment yes so this
diff --git a/epan/dissectors/packet-spnego.c b/epan/dissectors/packet-spnego.c
index 5ebfd16b41..609a013d26 100644
--- a/epan/dissectors/packet-spnego.c
+++ b/epan/dissectors/packet-spnego.c
@@ -1024,11 +1024,11 @@ dissect_spnego_mechTypes(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_item *item = NULL;
proto_tree *subtree = NULL;
gboolean saw_mechanism = FALSE;
- int start_offset, start_oid_offset;
+ int start_offset, start_oid_offset, end_oid_offset;
gint8 class;
gboolean pc, ind_field;
gint32 tag;
- gint32 len1;
+ guint32 len1;
gchar oid[MAX_OID_STR_LEN];
start_offset=offset;
@@ -1054,7 +1054,8 @@ dissect_spnego_mechTypes(tvbuff_t *tvb, int offset, packet_info *pinfo,
* Now, the object IDs ...
*/
start_oid_offset=offset;
- while (offset<(start_oid_offset+len1)) {
+ end_oid_offset = start_oid_offset+len1;
+ while (offset<end_oid_offset) {
gssapi_oid_value *value;
offset=dissect_ber_object_identifier(FALSE, pinfo, subtree, tvb, offset, hf_spnego_mech, oid);
diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c
index e7540cf3a8..ab63ce0c83 100644
--- a/epan/dissectors/packet-tcap.c
+++ b/epan/dissectors/packet-tcap.c
@@ -315,11 +315,11 @@ static int
dissect_tcap_User_information(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *parameter_tvb;
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
@@ -564,11 +564,11 @@ static int
dissect_tcap_Dialog1(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *parameter_tvb;
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
@@ -626,11 +626,11 @@ static int dissect_useroid(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb,
static int
dissect_tcap_ExternUserInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len, start_offset;
- guint32 ind_field;
+ gboolean ind_field;
/*
* ok lets look at the oid and ssn and try and find a dissector, otherwise lets decode it.
*/
@@ -799,11 +799,11 @@ static int
dissect_tcap_DialogueOC(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *parameter_tvb;
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
@@ -910,11 +910,11 @@ static int dissect_opCode(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, i
static int
dissect_tcap_Parameter(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
@@ -1237,11 +1237,11 @@ static const ber_choice_t Component_choice[] = {
static int
dissect_tcap_Component(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
tvbuff_t *next_tvb;
-guint8 class;
+gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
/*
* ok lets look at the oid and ssn and try and find a dissector, otherwise lets decode it.
*/
@@ -2902,11 +2902,11 @@ dissect_tcap_param(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offs
tvbuff_t *next_tvb;
proto_tree *subtree;
proto_item *pi;
- guint8 class;
+ gint8 class;
gboolean pc;
- guint32 tag;
+ gint32 tag;
guint32 len;
- guint32 ind_field;
+ gboolean ind_field;
while (tvb_reported_length_remaining(tvb, offset) > 0)
{