aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-03-09 22:37:55 +0000
committerGerald Combs <gerald@wireshark.org>2009-03-09 22:37:55 +0000
commit2236109a821d816cb877cdb8b05dda277e493ed6 (patch)
tree91bac88216fa0f7b3a7997c8e9516627e8634e31 /wiretap/vms.c
parent40f5a17d46cd75be955bc23b84d9cfaa31a63c4d (diff)
More 64-bit fixes.
svn path=/trunk/; revision=27685
Diffstat (limited to 'wiretap/vms.c')
-rw-r--r--wiretap/vms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/vms.c b/wiretap/vms.c
index f834122897..905405d32e 100644
--- a/wiretap/vms.c
+++ b/wiretap/vms.c
@@ -222,7 +222,7 @@ static gboolean vms_check_file_type(wtap *wth, int *err)
}
if (file_gets(buf, VMS_LINE_LENGTH, wth->fh) != NULL) {
- reclen = strlen(buf);
+ reclen = (guint) strlen(buf);
if (reclen < strlen(VMS_HDR_MAGIC_STR1) ||
reclen < strlen(VMS_HDR_MAGIC_STR2) ||
reclen < strlen(VMS_HDR_MAGIC_STR3)) {
@@ -435,7 +435,7 @@ parse_vms_rec_hdr(wtap *wth, FILE_T fh, int *err, gchar **err_info)
if (wth) {
p = strstr(months, mon);
if (p)
- tm.tm_mon = (p - months) / 3;
+ tm.tm_mon = (int) (p - months) / 3;
tm.tm_year -= 1900;
tm.tm_isdst = -1;