aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
committerYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
commitd1717e7c9079a5f2b6291fa1fefe95d1348f8cc5 (patch)
tree708af8d09980a0bb3bd6d00a7a6406232dcf1607 /lib/sendf.c
parente569ff959fb5be62e47eec38fec7d97014bf785f (diff)
Fix compiler warning: conditional expression is constant
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c2
1 files changed, 1 insertions, 1 deletions
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);