aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-01-19 21:45:54 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-01-19 21:45:54 +0000
commit316cd696424b122c581716389ed1ba3808c0f974 (patch)
treee4d111ba215589026e593793e4e9f9d1e5cf62c9 /epan
parent5c7ec8729ac36318b7ac1a35cfedd64c945bf9b5 (diff)
Fix warning found by clang...
packet-dcerpc.c:4056:19: error: comparison of integers of different signs: 'guint32' (aka 'unsigned int') and 'int' [-Wsign-compare] for (i = 0; i < (int) commands_nb; ++i) { ~ ^ ~~~~~~~~~~~~~~~~~ ... by removing the "(int)" cast svn path=/trunk/; revision=35587
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-dcerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c
index afd4a26a5d..a38d2c2966 100644
--- a/epan/dissectors/packet-dcerpc.c
+++ b/epan/dissectors/packet-dcerpc.c
@@ -4053,7 +4053,7 @@ dissect_dcerpc_cn_rts (tvbuff_t *tvb, gint offset, packet_info *pinfo,
cmd = ep_alloc(sizeof (guint32) * (commands_nb + 1));
/* Dissect commands */
- for (i = 0; i < (int) commands_nb; ++i) {
+ for (i = 0; i < commands_nb; ++i) {
proto_tree *cn_rts_command_tree = NULL;
const guint32 command = dcerpc_tvb_get_ntohl (tvb, offset, hdr->drep);
cmd[i] = command;