diff options
author | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-17 16:33:43 +0000 |
---|---|---|
committer | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-17 16:33:43 +0000 |
commit | 69e11fd3f7609f1ad4449eed0304bfdc61392a8c (patch) | |
tree | 61c1e102bf8a005560daf9e8b7f84d8aaa74598c | |
parent | e5aebd46efc946753d469a50156b95ecda68153e (diff) |
Try to squash 2 more warnings seen on buildot
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19921 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | wiretap/catapult_dct2000.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c index 36a22bf8eb..5f4d653657 100644 --- a/wiretap/catapult_dct2000.c +++ b/wiretap/catapult_dct2000.c @@ -27,6 +27,7 @@ #include <string.h> #include <stdlib.h> #include <ctype.h> +#include <inttypes.h> #include "wtap-int.h" #include "file_wrappers.h" @@ -390,7 +391,7 @@ gboolean catapult_dct2000_read(wtap *wth, int *err, gchar **err_info _U_, /* Create and use buffer for contents before time. Do this only if it doesn't correspond to " l ", which is by far the most common case. */ - if ((dollar_offset - after_time_offset -1 == strlen(" l ")) && + if (((size_t)(dollar_offset - after_time_offset -1) == strlen(" l ")) && (strncmp(linebuff+after_time_offset, " l ", strlen(" l ")) == 0)) { line_prefix_info->after_time = NULL; @@ -492,7 +493,7 @@ catapult_dct2000_seek_read(wtap *wth, gint64 seek_off, /* If get here, must have failed */ *err = errno; *err_info = g_strdup_printf("catapult dct2000: seek_read failed to read/parse " - "line at position %lld", seek_off); + "line at position %" PRId64, seek_off); return FALSE; } |