diff options
author | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-31 15:27:48 +0000 |
---|---|---|
committer | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-31 15:27:48 +0000 |
commit | e7122920614a8e462c96b6f79ee492e5617eeef8 (patch) | |
tree | 7cbe8386e1ca786969d439f41b5c15686f1a2220 | |
parent | bf3b6200ebf144fdb5620ff1815bb1bda125d288 (diff) |
Declare the snapshot_length as unsigned.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37479 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | wiretap/wtap-int.h | 2 | ||||
-rw-r--r-- | wiretap/wtap.c | 2 | ||||
-rw-r--r-- | wiretap/wtap.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index 96e3a68ba5..b4ed66a350 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -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; diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 27125f5247..4bf011e15a 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -78,7 +78,7 @@ wtap_file_type(wtap *wth) return wth->file_type; } -int +guint wtap_snapshot_length(wtap *wth) { return wth->snapshot_length; diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 2c00f2af16..de8b5009a6 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -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); |