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>