Again, some warnings removed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12831 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
ulfl 2004-12-25 10:30:58 +00:00
parent 2ee3011813
commit d946af6ef2
3 changed files with 6 additions and 6 deletions

View File

@ -487,13 +487,13 @@ get_byte_offset(guint64 bo) {
static guint32
get_start_octet(guint64 bo) {
return floor((gint64)bo / 8.0);
return (guint32) floor((gint64)bo / 8.0);
}
static guint32
get_end_octet(guint64 bo, guint32 bl)
{
return ceil((gint64)(bo + bl) / 8.0);
return (guint32) ceil((gint64)(bo + bl) / 8.0);
}
static guint32
@ -2208,7 +2208,7 @@ decode_msrac_access_capabilities(proto_tree *tree, tvbuff_t *tvb,
}
}
proto_item_set_len(ti, get_num_octets_spanned(start_bo,
bo - start_bo));
(guint32) (bo - start_bo)));
}
else {
pi = bit_proto_tree_add_bit_field8(tree, tvb, bo, bl);
@ -2805,7 +2805,7 @@ decode_iei_lsa_information(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset
proto_item *ti, *ti2, *pi;
proto_tree *tf, *tf2;
int num_lsa_infos, i;
guint32 data, value;
guint8 data, value;
value_string tab_priority[] = {
{ 0, "Priority 1 = lowest priority" },

View File

@ -710,7 +710,7 @@ dhcpv6_option(tvbuff_t *tvb, proto_tree *bp_tree, int off, int eoff,
/* proto_tree_add_text(subtree, tvb, off, 1, */
/* "flags: %d", */
/* (guint32)tvb_get_guint8(tvb, off)); */
dhcpv6_domain(subtree,tvb, off+1, optlen-1);
dhcpv6_domain(subtree,tvb, off+1, (guint16) (optlen-1));
break;
case OPTION_IAPREFIX:

View File

@ -1824,7 +1824,7 @@ dissect_nt_acl(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree = NULL;
int old_offset = offset;
int pre_ace_offset;
guint8 revision;
guint16 revision;
guint32 num_aces;
if(parent_tree){