Declare the snapshot_length as unsigned.
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 May 2011 15:27:48 +0000 (15:27 +0000)
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 May 2011 15:27:48 +0000 (15:27 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37479 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/wtap-int.h
wiretap/wtap.c
wiretap/wtap.h

index 96e3a68ba54a6d6c81016d7bc6e151337572dbfe..b4ed66a350cbd2499be5896402711d97ea5443aa 100644 (file)
@@ -54,7 +54,7 @@ struct wtap {
        FILE_T                  fh;
        FILE_T                  random_fh;    /* Secondary FILE_T for random access */
        int                     file_type;
-       int                     snapshot_length;
+       guint                   snapshot_length;
        struct Buffer           *frame_buffer;
        struct wtap_pkthdr      phdr;
        union wtap_pseudo_header pseudo_header;
index 27125f5247cf28204f014cafe8dd80d76fc4f9b9..4bf011e15ab65eab68787565683b5a5f756476f2 100644 (file)
@@ -78,7 +78,7 @@ wtap_file_type(wtap *wth)
        return wth->file_type;
 }
 
-int
+guint
 wtap_snapshot_length(wtap *wth)
 {
        return wth->snapshot_length;
index 2c00f2af1683544404473bc9efa6f420b394165b..de8b5009a6f6b51b13ce28b4d1b166346c1dd9af 100644 (file)
@@ -912,7 +912,7 @@ guint8 *wtap_buf_ptr(wtap *wth);
  * from the file so far. */
 gint64 wtap_read_so_far(wtap *wth);
 gint64 wtap_file_size(wtap *wth, int *err);
-int wtap_snapshot_length(wtap *wth); /* per file */
+guint wtap_snapshot_length(wtap *wth); /* per file */
 int wtap_file_type(wtap *wth);
 int wtap_file_encap(wtap *wth);
 int wtap_file_tsprecision(wtap *wth);