diff options
author | Yang Tse <yangsita@gmail.com> | 2009-10-10 12:29:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-10-10 12:29:32 +0000 |
commit | 640e49976f34d766124cb6988dc4849c4acab6d0 (patch) | |
tree | 78d4ae77225e32e08a33cea945ec244adb67ef96 /tests/server | |
parent | f1aa936d2c48a5a4cd860d22b8db566a1dd848b2 (diff) |
Fix compiler warning: loop without body
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sockfilt.c | 5 |
1 files changed, 4 insertions, 1 deletions
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: |