summaryrefslogtreecommitdiff
path: root/pcap-npf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-03-20 11:43:56 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-20 11:43:56 -0700
commitd6a0991279f0341f94ea7a76df5c8c178c93d08c (patch)
treedf56e0b6823fc5134d7813ff40f52a3b70e8cda2 /pcap-npf.c
parente0c66c587d2ebf40f0e8086087fdb7956b091b85 (diff)
downloadlibpcap-d6a0991279f0341f94ea7a76df5c8c178c93d08c.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-npf.c b/pcap-npf.c
index 837f4908..1419470b 100644
--- a/pcap-npf.c
+++ b/pcap-npf.c
@@ -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;
/*