From d1717e7c9079a5f2b6291fa1fefe95d1348f8cc5 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 2 Feb 2010 16:25:07 +0000 Subject: Fix compiler warning: conditional expression is constant --- lib/sendf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sendf.c') diff --git a/lib/sendf.c b/lib/sendf.c index cb0bffce4..e2afd7170 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -210,7 +210,7 @@ CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *conn, write_len = strlen(s); sptr = s; - while(1) { + for(;;) { /* Write the buffer to the socket */ res = Curl_write(conn, sockfd, sptr, write_len, &bytes_written); -- cgit v1.2.3