]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a "constant in conditional expression" warning.
authorGuy Harris <[email protected]>
Tue, 20 Mar 2018 20:18:06 +0000 (13:18 -0700)
committerGuy Harris <[email protected]>
Tue, 20 Mar 2018 20:18:06 +0000 (13:18 -0700)
Use for (;;) rather than while (1).

rpcapd/daemon.c

index e9a5dc175aefbcffe68af87f25896fcb08bdd3c9..fe8d75dda1350de104a7b06a6366b201fab84759 100755 (executable)
@@ -454,7 +454,7 @@ void *daemon_serviceloop(void *ptr)
        //
        // Service requests.
        //
-       while (1)
+       for (;;)
        {
                errbuf[0] = 0;  // clear errbuf