Removed some "initializer does not fit or is out of range" warnings.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Mar 2009 12:44:50 +0000 (12:44 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Mar 2009 12:44:50 +0000 (12:44 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27826 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-dplay.c
epan/dissectors/packet-ff.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ipars.c
epan/dissectors/packet-kdp.c
epan/dissectors/packet-netsync.c
epan/dissectors/packet-rtmpt.c

index b1864a0a83a8baf5db65f308e0024b49d2ab2214..f88f94186eb8c63f6f818428a4fd550ebccb0ef4 100644 (file)
@@ -1011,7 +1011,7 @@ static gint dissect_type2f_message(proto_tree *tree, tvbuff_t *tvb, gint offset)
 static void dissect_dplay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
     guint16 message_type;
-    guint16 second_message_type = -1;
+    guint16 second_message_type = G_MAXUINT16;
     guint16 proto_version;
     guint16 packet_size;
     guint32 dplay_id;
index 8527ec6e43133a9cd077ec2ff723cdd37b57d4f2..de79ea6f7914161e75e5d95f83b09a9f7fc17e75 100644 (file)
@@ -10556,7 +10556,7 @@ dissect_ff_msg_lr_get_statistics_rsp(
 {
        proto_tree *sub_tree    = NULL;
        proto_item *ti  = NULL;
-       guint32 NumXcableStat   = -1;
+       guint32 NumXcableStat;
 
        if(check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index c4b76aec1426a877344470793f7e01e7c7b9b2ac..28012023291c9a80d0f1fff9c750220ac3276414 100644 (file)
@@ -6998,7 +6998,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
 #define PROTECTION_ALG_CCMP  2
 #define PROTECTION_ALG_RSNA  PROTECTION_ALG_CCMP | PROTECTION_ALG_TKIP
 #endif
-    guint8 algorithm=-1;
+    guint8 algorithm=G_MAXUINT8;
     /* Davide Schiera (2006-11-27): added macros to check the algorithm    */
     /* used could be TKIP or CCMP                            */
 #define IS_TKIP(tvb, hdr_len)  (tvb_get_guint8(tvb, hdr_len + 1) & 0x20)
index 1486e3623094b6dd97ab2b9f2899673d1e042abd..37371d89518bf077080de97afb9aff2d31048e83 100644 (file)
@@ -38,7 +38,7 @@
 #include <epan/emem.h>
 
 static int             proto_ipars             = -1;
-static guint8  ipars_eomtype   = -1;
+static guint8  ipars_eomtype   = G_MAXUINT8;
 static gint            ett_ipars               = -1;
 
 #define S1             (0x00)
index 073924e2de6e5bd6e45aee3d45763ca3355dd4c1..da26eb9141e30411c8a55b399f4fb1a171d6628b 100644 (file)
@@ -78,9 +78,9 @@ static void dissect_kdp(tvbuff_t *tvb,
   guint8 header_len = 0;
   guint8 packet_flags = 0;
   guint8 packet_errors = 0;
-  guint32 sequence_number = -1;
-  guint32 ack_number = -1
-  guint32 src_flowid = -1
+  guint32 sequence_number = G_MAXUINT32;
+  guint32 ack_number = G_MAXUINT32
+  guint32 src_flowid = G_MAXUINT32
   int offset;
 
   if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
index a5edd929b781f30bd29cdae740d122afa2a40174..068c124c05e29ff7bb8efbe47ba189149c572225 100644 (file)
@@ -371,7 +371,7 @@ static gint dissect_netsync_cmd_send_delta(tvbuff_t *tvb,  gint offset, proto_tr
 
 static gint dissect_netsync_cmd_data(tvbuff_t *tvb,  gint offset, proto_tree *tree, guint size _U_)
 {
-       guint len = -1;
+       guint len = 0;
 
        proto_tree_add_item(tree, hf_netsync_cmd_data_type, tvb,
                                offset, 1, FALSE );
index b962128a2dba6bf9edf554161a4555ba27b6440d..55630a65a0c4e97f90f4eb671ded691cacad1986 100644 (file)
@@ -194,7 +194,7 @@ dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        struct tcpinfo* tcpinfo = pinfo->private_data;
        static gint iPreviousFrameNumber = -1;
 
-       guint16 iCommand = -1;
+       guint16 iCommand = G_MAXUINT16;
        guint16 iLength = 1;
        guint16 iHeaderType = 4; 
        guint16 iHeaderLength;
@@ -391,7 +391,7 @@ get_rtmpt_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
        {
                guint16 iHeaderType;
                guint8 iID;
-               guint16 iCommand = -1;
+               guint16 iCommand = G_MAXUINT16;
 
                iID = tvb_get_guint8(tvb, offset + 0);
                iHeaderType = iID >> 6;