aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
diff options
context:
space:
mode:
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;