summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-03-06 18:42:10 +0100
committerTobias Klauser <tklauser@distanz.ch>2018-03-06 18:42:10 +0100
commit18f5d4dde7ef18efa0489f2007f5ebeed89975ea (patch)
treebf5e9e25335c12eb7ab11f0408607b5cad6f8b6e /trafgen_parser.y
parent0cba196c4e8d02c5d96d9eb945583869afde5d2d (diff)
trafgen: fix signedness warning in cleanup_packets
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 <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y2
1 files changed, 1 insertions, 1 deletions
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]);