diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-01-05 19:31:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-01-05 19:31:44 +0000 |
commit | 0d9679de8dd6536bf1d0c9664489f4c35b1e6270 (patch) | |
tree | 4bbb164018cdeecf66dacbbe39d03b005ddbcfa2 /packet-nbns.c | |
parent | ba3b94790d2d639559ef75632d0e92a9d040f0d7 (diff) |
removed some MSVC warnings (level 3)
svn path=/trunk/; revision=9561
Diffstat (limited to 'packet-nbns.c')
-rw-r--r-- | packet-nbns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-nbns.c b/packet-nbns.c index 827d88183f..6c624fd74e 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -3,7 +3,7 @@ * to when it had only NBNS) * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-nbns.c,v 1.80 2002/09/12 00:10:58 tpot Exp $ + * $Id: packet-nbns.c,v 1.81 2004/01/05 19:31:44 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -432,7 +432,7 @@ nbns_add_nbns_flags(column_info *cinfo, proto_tree *nbns_tree, tvbuff_t *tvb, in proto_tree *field_tree; proto_item *tf; - opcode = (flags & F_OPCODE) >> OPCODE_SHIFT; + opcode = (guint16) ((flags & F_OPCODE) >> OPCODE_SHIFT); strcpy(buf, val_to_str(opcode, opcode_vals, "Unknown operation")); if (flags & F_RESPONSE && !is_wack) { strcat(buf, " response"); @@ -1007,8 +1007,8 @@ dissect_nbns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* To do: check for runts, errs, etc. */ id = tvb_get_ntohs(tvb, offset + NBNS_ID); flags = tvb_get_ntohs(tvb, offset + NBNS_FLAGS); - opcode = (flags & F_OPCODE) >> OPCODE_SHIFT; - rcode = (flags & F_RCODE); + opcode = (guint16) ((flags & F_OPCODE) >> OPCODE_SHIFT); + rcode = (guint16) (flags & F_RCODE); if (check_col(pinfo->cinfo, COL_INFO)) { col_add_fstr(pinfo->cinfo, COL_INFO, "%s%s", @@ -1197,7 +1197,7 @@ dissect_nbdgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; case NBDS_ERROR: - header.error_code = tvb_get_ntohs(tvb, offset+10); + header.error_code = (guint8) tvb_get_ntohs(tvb, offset+10); break; } |