From 640e49976f34d766124cb6988dc4849c4acab6d0 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 10 Oct 2009 12:29:32 +0000 Subject: Fix compiler warning: loop without body --- tests/server/sockfilt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/server') diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index d01a2d1fe..cad48603a 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -837,6 +837,7 @@ int main(int argc, char *argv[]) curl_socket_t msgsock = CURL_SOCKET_BAD; int wrotepidfile = 0; char *pidname= (char *)".sockfilt.pid"; + bool juggle_again; int rc; int error; int arg=1; @@ -1001,7 +1002,9 @@ int main(int argc, char *argv[]) if(!wrotepidfile) goto sockfilt_cleanup; - while(juggle(&msgsock, sock, &mode)); + do { + juggle_again = juggle(&msgsock, sock, &mode); + } while(juggle_again); sockfilt_cleanup: -- cgit v1.2.3