diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-04-22 03:07:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-04-22 03:07:37 +0000 |
commit | ad33ca6c2f33d2b842d2b7891513d57336ab89cc (patch) | |
tree | df299ef604107c294e223b6c40431136cdb90cd4 /wiretap/netmon.c | |
parent | 043b2b20ac210a0f29894909da7f29473e8c5161 (diff) |
Clean up some 64-bit issues.
svn path=/trunk/; revision=28117
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r-- | wiretap/netmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index 985a8c9f9e..66b1cacad6 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -256,7 +256,7 @@ int netmon_open(wtap *wth, int *err, gchar **err_info) * in it as the offsets of the frames. */ frame_table_length = pletohl(&hdr.frametablelength); - frame_table_size = frame_table_length / sizeof (guint32); + frame_table_size = frame_table_length / (guint32)sizeof (guint32); if ((frame_table_size * sizeof (guint32)) != frame_table_length) { *err = WTAP_ERR_UNSUPPORTED; *err_info = g_strdup_printf("netmon: frame table length is %u, which is not a multiple of the size of an entry", @@ -420,8 +420,8 @@ static gboolean netmon_read(wtap *wth, int *err, gchar **err_info, /* * Don't count the pseudo-header as part of the packet. */ - orig_size -= sizeof (struct netmon_atm_hdr); - packet_size -= sizeof (struct netmon_atm_hdr); + orig_size -= (guint)sizeof (struct netmon_atm_hdr); + packet_size -= (guint)sizeof (struct netmon_atm_hdr); wth->data_offset += sizeof (struct netmon_atm_hdr); break; |