diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 17:41:41 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 17:42:14 +0200 |
commit | e4465480c2fb8b23a0786e6d395597ea3d0d9888 (patch) | |
tree | 37564fd42c5a5a34e1788f61a8af52455827c310 /pcap_io.h | |
parent | 634fddf161d80503d0e1cef59272152611317a76 (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'pcap_io.h')
-rw-r--r-- | pcap_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |