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
This commit is contained in:
Stephen Fisher 2011-01-19 21:45:54 +00:00
parent 5c7ec8729a
commit 316cd69642
1 changed files with 1 additions and 1 deletions

View File

@ -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;