From: Guy Harris Date: Tue, 20 Mar 2018 20:18:06 +0000 (-0700) Subject: Squelch a "constant in conditional expression" warning. X-Git-Tag: libpcap-1.9-bp~204 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a3cd05ca13ce80ca6c788a77c077158b402c8b11 Squelch a "constant in conditional expression" warning. Use for (;;) rather than while (1). --- diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c index e9a5dc17..fe8d75dd 100755 --- a/rpcapd/daemon.c +++ b/rpcapd/daemon.c @@ -454,7 +454,7 @@ void *daemon_serviceloop(void *ptr) // // Service requests. // - while (1) + for (;;) { errbuf[0] = 0; // clear errbuf