From e4465480c2fb8b23a0786e6d395597ea3d0d9888 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 13 Jul 2013 17:41:41 +0200 Subject: pcap_io: Use iterator variable of correct type array_size() returns size_t, thus make i size_t too to avoid a warning regarding comparison of signed/unsigned. Signed-off-by: Tobias Klauser --- pcap_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap_io.h') diff --git a/pcap_io.h b/pcap_io.h index 310ac6c..31685b4 100644 --- a/pcap_io.h +++ b/pcap_io.h @@ -570,7 +570,7 @@ static const struct pcap_magic_type pcap_magic_types[] __maybe_unused = { static inline void pcap_dump_type_features(void) { - int i; + size_t i; for (i = 0; i < array_size(pcap_magic_types); ++i) { printf("%s:\n", pcap_magic_types[i].desc); -- cgit v1.2.3-54-g00ecf