Declare the snapshot_length as unsigned.

svn path=/trunk/; revision=37479
This commit is contained in:
Chris Maynard 2011-05-31 15:27:48 +00:00
parent 8f8f0e9ad6
commit 63b50fe2ee
3 changed files with 3 additions and 3 deletions

View 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;

View 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;

View 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);