diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-19 21:45:54 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-19 21:45:54 +0000 |
commit | 316cd696424b122c581716389ed1ba3808c0f974 (patch) | |
tree | e4d111ba215589026e593793e4e9f9d1e5cf62c9 /epan/dissectors | |
parent | 5c7ec8729ac36318b7ac1a35cfedd64c945bf9b5 (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/dissectors')
-rw-r--r-- | epan/dissectors/packet-dcerpc.c | 2 |
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; |