diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-02-01 00:52:38 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-02-01 00:52:38 +0000 |
commit | 970594e453b88a264c2399926b4ed6878caa0595 (patch) | |
tree | 827d069140778af4f8c1c3f3af50ebffd040cee2 /epan/dissectors/packet-redback.c | |
parent | 89ee9a7290103304cc780a31a6712d7fa94496e3 (diff) |
removed MSVC warnings:
packet-redback.c(63) : warning C4244: '=' : conversion from 'unsigned short ' to 'unsigned char ', possible loss of data
packet-redback.c(64) : warning C4244: '=' : conversion from 'unsigned short ' to 'unsigned char ', possible loss of data
packet-redback.c(65) : warning C4244: '=' : conversion from 'unsigned short ' to 'unsigned char ', possible loss of data
packet-rmt-fec.c(108) : warning C4244: '=' : conversion from 'unsigned short ' to 'unsigned char ', possible loss of data
svn path=/trunk/; revision=13221
Diffstat (limited to 'epan/dissectors/packet-redback.c')
-rw-r--r-- | epan/dissectors/packet-redback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-redback.c b/epan/dissectors/packet-redback.c index 250b0e20bf..6b684734f9 100644 --- a/epan/dissectors/packet-redback.c +++ b/epan/dissectors/packet-redback.c @@ -60,9 +60,9 @@ dissect_redback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) length = tvb_get_ntohs(tvb, 16); - proto = tvb_get_ntohs(tvb, 18); - l3off = tvb_get_ntohs(tvb, 20); - dataoff = tvb_get_ntohs(tvb, 22); + proto = (guint8) tvb_get_ntohs(tvb, 18); + l3off = (guint8) tvb_get_ntohs(tvb, 20); + dataoff = (guint8) tvb_get_ntohs(tvb, 22); ti = proto_tree_add_text(tree, tvb, 0, length, "Redback"); |