diff options
author | Evan Huus <eapache@gmail.com> | 2012-09-26 01:56:13 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-09-26 01:56:13 +0000 |
commit | c0c2466d00aac7d4b83c02f50ce43ee0c67bd066 (patch) | |
tree | 9025a46e68af037f5f8e1d7d1ac7ca71cfd081fd /reordercap.c | |
parent | f60693dbea2fe47ad61d2e2af9188f98ed83263f (diff) | |
download | wireshark-c0c2466d00aac7d4b83c02f50ce43ee0c67bd066.tar.gz |
Fix some signed/unsigned mismatches caught by cppcheck.
svn path=/trunk/; revision=45145
Diffstat (limited to 'reordercap.c')
-rw-r--r-- | reordercap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reordercap.c b/reordercap.c index c083491654..c206e31e84 100644 --- a/reordercap.c +++ b/reordercap.c @@ -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); |