diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-03-20 11:43:56 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-20 11:43:56 -0700 |
commit | d6a0991279f0341f94ea7a76df5c8c178c93d08c (patch) | |
tree | df56e0b6823fc5134d7813ff40f52a3b70e8cda2 /pcap-npf.c | |
parent | e0c66c587d2ebf40f0e8086087fdb7956b091b85 (diff) |
Use for (;;) rather than while (1).
That squelches "conditional expression is constant" warnings from MSVC.
Diffstat (limited to 'pcap-npf.c')
-rw-r--r-- | pcap-npf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -527,7 +527,7 @@ pcap_read_win32_npf(pcap_t *p, int cnt, pcap_handler callback, u_char *user) */ #define bhp ((struct bpf_hdr *)bp) ep = bp + cc; - while (1) { + for (;;) { register int caplen, hdrlen; /* |