aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-11-05 22:46:44 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-11-05 22:46:44 +0000
commit59d6c8ea33b703a4282ac6694f2797202b64dfcb (patch)
treea4abb83c0c20eafb12ab250bcf7f32f74f281b44 /wiretap/vms.c
parented837bc7a517040020da2717b392a0ca086e276a (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 'wiretap/vms.c')
-rw-r--r--wiretap/vms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/wiretap/vms.c b/wiretap/vms.c
index 81b00986dc..38fbb9e124 100644
--- a/wiretap/vms.c
+++ b/wiretap/vms.c
@@ -144,8 +144,8 @@ to handle them.
#define VMS_LINE_LENGTH 240
static gboolean vms_read(wtap *wth, int *err, gchar **err_info,
- long *data_offset);
-static gboolean vms_seek_read(wtap *wth, long seek_off,
+ gint64 *data_offset);
+static gboolean vms_seek_read(wtap *wth, gint64 seek_off,
union wtap_pseudo_header *pseudo_header, guint8 *pd, int len,
int *err, gchar **err_info);
static gboolean parse_single_hex_dump_line(char* rec, guint8 *buf,
@@ -210,7 +210,7 @@ static gboolean vms_check_file_type(wtap *wth, int *err)
{
char buf[VMS_LINE_LENGTH];
guint reclen, line;
- long mpos;
+ gint64 mpos;
buf[VMS_LINE_LENGTH-1] = '\0';
@@ -278,9 +278,9 @@ int vms_open(wtap *wth, int *err, gchar **err_info _U_)
/* Find the next packet and parse it; called from wtap_read(). */
static gboolean vms_read(wtap *wth, int *err, gchar **err_info,
- long *data_offset)
+ gint64 *data_offset)
{
- long offset = 0;
+ gint64 offset = 0;
guint8 *buf;
int pkt_len;
@@ -313,7 +313,7 @@ static gboolean vms_read(wtap *wth, int *err, gchar **err_info,
/* Used to read packets in random-access fashion */
static gboolean
-vms_seek_read (wtap *wth, long seek_off,
+vms_seek_read (wtap *wth, gint64 seek_off,
union wtap_pseudo_header *pseudo_header _U_,
guint8 *pd, int len, int *err, gchar **err_info)
{