From 18f5d4dde7ef18efa0489f2007f5ebeed89975ea Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 6 Mar 2018 18:42:10 +0100 Subject: trafgen: fix signedness warning in cleanup_packets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following GCC warning: trafgen_parser.y: In function ‘cleanup_packets’: trafgen_parser.y:1479:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (k = 0; k < hdr->sub_headers_count; k++) Signed-off-by: Tobias Klauser --- trafgen_parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trafgen_parser.y b/trafgen_parser.y index 4d83af6..40aa230 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -1474,7 +1474,7 @@ void cleanup_packets(void) for (j = 0; j < pkt->headers_count; j++) { struct proto_hdr *hdr = pkt->headers[j]; - int k; + uint32_t k; for (k = 0; k < hdr->sub_headers_count; k++) xfree(hdr->sub_headers[k]); -- cgit v1.2.3-54-g00ecf