If the loop upper bound is of type X, and the lower bound can also be a
value of type X, you probably want to use type X for the loop index
(unless you're worried about the loop index overflowing, but you're not
going to get 2^31 addresses, so that's not an issue here).
npf_if_addr if_addrs[MAX_NETWORK_ADDRESSES];
LONG if_addr_size = MAX_NETWORK_ADDRESSES;
struct sockaddr_in *t_addr;
- unsigned int i;
+ LONG i;
if (!PacketGetNetInfoEx((void *)device, if_addrs, &if_addr_size)) {
*netp = *maskp = 0;