diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-05 22:46:44 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-05 22:46:44 +0000 |
commit | d494883dde3d40cce3f04e8dd1f0d73037e63378 (patch) | |
tree | a4abb83c0c20eafb12ab250bcf7f32f74f281b44 /wiretap/vms.c | |
parent | 3928e1990145cf1cc0eb0de01d1196f422d78a4c (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/vms.c')
-rw-r--r-- | wiretap/vms.c | 12 |
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) { |