summaryrefslogtreecommitdiff
path: root/pcap_io.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-13 17:41:41 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-13 17:42:14 +0200
commite4465480c2fb8b23a0786e6d395597ea3d0d9888 (patch)
tree37564fd42c5a5a34e1788f61a8af52455827c310 /pcap_io.h
parent634fddf161d80503d0e1cef59272152611317a76 (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.h2
1 files changed, 1 insertions, 1 deletions
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);