aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/visual.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-11-05 22:46:44 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-11-05 22:46:44 +0000
commitd494883dde3d40cce3f04e8dd1f0d73037e63378 (patch)
treea4abb83c0c20eafb12ab250bcf7f32f74f281b44 /wiretap/visual.c
parent3928e1990145cf1cc0eb0de01d1196f422d78a4c (diff)
change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19814 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/visual.c')
-rw-r--r--wiretap/visual.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/visual.c b/wiretap/visual.c
index 2f4b23678b..332f985f26 100644
--- a/wiretap/visual.c
+++ b/wiretap/visual.c
@@ -113,9 +113,9 @@ struct visual_write_info
/* Local functions to handle file reads and writes */
static gboolean visual_read(wtap *wth, int *err, gchar **err_info,
- long *data_offset);
+ gint64 *data_offset);
static void visual_close(wtap *wth);
-static gboolean visual_seek_read(wtap *wth, long seek_off,
+static gboolean visual_seek_read(wtap *wth, gint64 seek_off,
union wtap_pseudo_header *pseudo_header, guchar *pd, int packet_size,
int *err, gchar **err_info);
static void visual_set_pseudo_header(int encap, struct visual_pkt_hdr *vpkt_hdr,
@@ -233,7 +233,7 @@ int visual_open(wtap *wth, int *err, gchar **err_info)
the file has been read once, any Future access to the packets is
done through seek_read. */
static gboolean visual_read(wtap *wth, int *err, gchar **err_info,
- long *data_offset)
+ gint64 *data_offset)
{
struct visual_read_info *visual = wth->capture.generic;
guint32 packet_size = 0;
@@ -330,7 +330,7 @@ static void visual_close(wtap *wth)
/* Read packet data for random access.
This gets the packet data and rebuilds the pseudo header so that
the direction flag works. */
-static gboolean visual_seek_read (wtap *wth, long seek_off,
+static gboolean visual_seek_read (wtap *wth, gint64 seek_off,
union wtap_pseudo_header *pseudo_header, guint8 *pd, int len,
int *err, gchar **err_info _U_)
{