Fix compiler warning: comparison between signed and unsigned
authorYang Tse <yangsita@gmail.com>
Wed, 12 Jul 2006 09:03:48 +0000 (09:03 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 12 Jul 2006 09:03:48 +0000 (09:03 +0000)
tests/server/sws.c

index 7d1b76ea1d966e1154153279b493b4cb59821f5e..4868651eb79874d874f703ab154b96361bca9600 100644 (file)
@@ -519,7 +519,7 @@ static int send_doc(int sock, struct httprequest *req)
     count = strlen(STREAMTHIS);
     while(1) {
       written = swrite(sock, STREAMTHIS, count);
-      if(written != count) {
+      if(written != (ssize_t)count) {
         logmsg("Stopped streaming");
         break;
       }