modified to hush compiler warnings
authorDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jan 2006 12:18:22 +0000 (12:18 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jan 2006 12:18:22 +0000 (12:18 +0000)
tests/server/sws.c

index 270c6a3..2a9e32d 100644 (file)
@@ -520,10 +520,10 @@ static int send_doc(int sock, struct httprequest *req)
       written = swrite(sock, STREAMTHIS, count);
       if(written != (int)count) {
         logmsg("Stopped streaming");
-        return -1;
+        break;
       }
     }
-    break;
+    return -1;
   case RCMD_IDLE:
     /* Do nothing. Sit idle. Pretend it rains. */
     return 0;