diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
commit | 59d6c8ea33b703a4282ac6694f2797202b64dfcb (patch) | |
tree | a4abb83c0c20eafb12ab250bcf7f32f74f281b44 /tshark.c | |
parent | ed837bc7a517040020da2717b392a0ca086e276a (diff) |
change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!
svn path=/trunk/; revision=19814
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -178,7 +178,7 @@ static void report_counts_siginfo(int); #endif /* HAVE_LIBPCAP */ static int load_cap_file(capture_file *, char *, int); -static gboolean process_packet(capture_file *cf, long offset, +static gboolean process_packet(capture_file *cf, gint64 offset, const struct wtap_pkthdr *whdr, union wtap_pseudo_header *pseudo_header, const guchar *pd); static void show_capture_file_io_error(const char *, int, gboolean); @@ -2048,7 +2048,7 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type) wtap_dumper *pdh; int err; gchar *err_info; - long data_offset; + gint64 data_offset; char *save_file_string = NULL; linktype = wtap_file_encap(cf->wth); @@ -2185,7 +2185,7 @@ out: static void fill_in_fdata(frame_data *fdata, capture_file *cf, - const struct wtap_pkthdr *phdr, long offset) + const struct wtap_pkthdr *phdr, gint64 offset) { fdata->next = NULL; fdata->prev = NULL; @@ -2246,7 +2246,7 @@ clear_fdata(frame_data *fdata) } static gboolean -process_packet(capture_file *cf, long offset, const struct wtap_pkthdr *whdr, +process_packet(capture_file *cf, gint64 offset, const struct wtap_pkthdr *whdr, union wtap_pseudo_header *pseudo_header, const guchar *pd) { frame_data fdata; |