]> granicus.if.org Git - curl/commitdiff
fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Sat, 13 Sep 2008 01:12:07 +0000 (01:12 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 13 Sep 2008 01:12:07 +0000 (01:12 +0000)
lib/telnet.c

index 63eef5f290e172095b51494e4d287e86abe4715f..c63c87946c846d5c51f1bb0ba55db4a71bdbcc26 100644 (file)
@@ -1289,7 +1289,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
   if(event_select_func(sockfd, event_handle, FD_READ|FD_CLOSE) == SOCKET_ERROR) {
     close_event_func(event_handle);
     FreeLibrary(wsock2);
-    return 0;
+    return CURLE_OK;
   }
 
   /* If stdin_handle is a pipe, use PeekNamedPipe() method to check it,