aboutsummaryrefslogtreecommitdiffstats
path: root/packet-cops.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-12-11 21:23:37 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-12-11 21:23:37 +0000
commit10e3320115a0fd419829016e29a62ca806081878 (patch)
treefb84266ca65361a8ca29f29daffb1e7fd1217b12 /packet-cops.c
parent95ea01a41ad9ca8a1b3514c1bef8a69141721bf0 (diff)
prevent MSVC warning:
"warning C4761: Gr��enkonflikt im Argument. Konvertierung vorgenommen" -> size conflict in argument, conversion done svn path=/trunk/; revision=9244
Diffstat (limited to 'packet-cops.c')
-rw-r--r--packet-cops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-cops.c b/packet-cops.c
index 4ba043a63d..bbab80a992 100644
--- a/packet-cops.c
+++ b/packet-cops.c
@@ -4,7 +4,7 @@
*
* Copyright 2000, Heikki Vatiainen <hessu@cs.tut.fi>
*
- * $Id: packet-cops.c,v 1.36 2003/10/05 23:09:59 jmayer Exp $
+ * $Id: packet-cops.c,v 1.37 2003/12/11 21:23:36 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -641,7 +641,7 @@ static int dissect_cops_object(tvbuff_t *tvb, guint32 offset, proto_tree *tree)
offset++;
contents_len = object_len - COPS_OBJECT_HDR_SIZE;
- dissect_cops_object_data(tvb, offset, obj_tree, c_num, c_type, contents_len);
+ dissect_cops_object_data(tvb, offset, obj_tree, c_num, c_type, (guint16) contents_len);
/* Pad to 32bit boundary */
if (object_len % sizeof (guint32))
@@ -695,7 +695,7 @@ static void dissect_cops_pr_objects(tvbuff_t *tvb, guint32 offset, proto_tree *t
pr_len--;
contents_len = object_len - COPS_OBJECT_HDR_SIZE;
- ret = dissect_cops_pr_object_data(tvb, offset, obj_tree, s_num, s_type, contents_len);
+ ret = dissect_cops_pr_object_data(tvb, offset, obj_tree, s_num, s_type, (guint16) contents_len);
if (ret < 0)
break;