From 59d6c8ea33b703a4282ac6694f2797202b64dfcb Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 5 Nov 2006 22:46:44 +0000 Subject: 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 --- wiretap/libpcap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wiretap/libpcap.c') diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index 0d782d3b50..997b63f896 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -113,8 +113,8 @@ typedef enum { static libpcap_try_t libpcap_try(wtap *wth, int *err); static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info, - long *data_offset); -static gboolean libpcap_seek_read(wtap *wth, long seek_off, + gint64 *data_offset); +static gboolean libpcap_seek_read(wtap *wth, gint64 seek_off, union wtap_pseudo_header *pseudo_header, guchar *pd, int length, int *err, gchar **err_info); static int libpcap_read_header(wtap *wth, int *err, gchar **err_info, @@ -1154,7 +1154,7 @@ static libpcap_try_t libpcap_try(wtap *wth, int *err) /* Read the next packet */ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info, - long *data_offset) + gint64 *data_offset) { struct pcaprec_ss990915_hdr hdr; guint packet_size; @@ -1392,7 +1392,7 @@ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info, } static gboolean -libpcap_seek_read(wtap *wth, long seek_off, +libpcap_seek_read(wtap *wth, gint64 seek_off, union wtap_pseudo_header *pseudo_header, guchar *pd, int length, int *err, gchar **err_info) { -- cgit v1.2.3