diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-24 13:22:35 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-24 13:22:35 +0200 |
commit | 97d26b9ee4bffda96e74fd1379cdddd47adbaf49 (patch) | |
tree | 40bda8423baadbcb89b8f7c47acd6445dfdcc92e /trafgen_parser.y | |
parent | a168c8c7b8d6f884775815ba45868689fe43774e (diff) |
misc: fix some minor compile warnings all over
Some regarding unused parameter, some regarding signed/unsigned
comparison.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index 8b8f3e6..1112f8a 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -153,7 +153,7 @@ static void set_byte(uint8_t val) static void set_multi_byte(uint8_t *s, size_t len) { - int i; + size_t i; for (i = 0; i < len; ++i) set_byte(s[i]); @@ -187,7 +187,7 @@ static void __set_csum16_dynamic(size_t from, size_t to, enum csum which) __setup_new_csum16(&pktd->csum[packetds_last], from, to, which); } -static void __set_csum16_static(size_t from, size_t to, enum csum which) +static void __set_csum16_static(size_t from, size_t to, enum csum which __maybe_unused) { struct packet *pkt = &packets[packet_last]; uint16_t sum; |