Fix some signed/unsigned mismatches caught by cppcheck.
authorEvan Huus <eapache@gmail.com>
Wed, 26 Sep 2012 01:56:13 +0000 (01:56 -0000)
committerEvan Huus <eapache@gmail.com>
Wed, 26 Sep 2012 01:56:13 +0000 (01:56 -0000)
svn path=/trunk/; revision=45145

reordercap.c

index c08349165475cdaf9c1efb9e4b6160eaf2d46532..c206e31e84a693509fa45edd222dfe6b3847e741 100644 (file)
@@ -51,7 +51,7 @@ typedef struct FrameRecord_t {
 
 /* This is pretty big, but I don't mind waiting a few seconds */
 #define MAX_REORDER_LIST_LENGTH 3000
-static int g_FrameRecordCount;
+static unsigned int g_FrameRecordCount;
 
 /* This is the list of frames, sorted by time.  Later frames at the front, earlier
    ones at the end */
@@ -100,7 +100,7 @@ static void ReorderListDebugPrint(void)
 /**************************************************/
 
 /* Counting frames that weren't in order */
-static int g_OutOfOrder = 0;
+static unsigned int g_OutOfOrder = 0;
 
 
 /* Is time1 later than time2? */
@@ -237,7 +237,7 @@ static void ReorderListDumpEarliest(wtap *wth, wtap_dumper *pdh)
                    g_FrameListTail->length,
                    &err,
                    &errinfo);
-    DEBUG_PRINT("re-read: err is %u, buf is (%s)\n", err, buf);
+    DEBUG_PRINT("re-read: err is %d, buf is (%s)\n", err, buf);
 
     /* Get packet header */
     phdr = wtap_phdr(wth);