aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-31 15:27:48 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-31 15:27:48 +0000
commit63b50fe2eea5e88c455869066626f350acfd9761 (patch)
tree7cbe8386e1ca786969d439f41b5c15686f1a2220 /wiretap
parent8f8f0e9ad6fdf0cf3ad12cb2cd1f032da517932c (diff)
Declare the snapshot_length as unsigned.
svn path=/trunk/; revision=37479
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/wtap-int.h2
-rw-r--r--wiretap/wtap.c2
-rw-r--r--wiretap/wtap.h2
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);