diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-29 13:56:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-29 13:56:45 +0000 |
commit | 4d17d6876e4b2f08380812c4ec113073b0a14639 (patch) | |
tree | 7283f07518be4c7250d72ac89c38729563ffa642 /lib/sendf.c | |
parent | 0d6236f7e10468f75d09796ba9640c9054ab1f04 (diff) | |
download | curl-4d17d6876e4b2f08380812c4ec113073b0a14639.tar.gz |
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
warnings. Minor edits by me.
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 13275913e..fe3cbb422 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -189,7 +189,7 @@ CURLcode Curl_sendf(int sockfd, struct connectdata *conn, write_len = strlen(s); sptr = s; - do { + while (1) { /* Write the buffer to the socket */ res = Curl_write(conn, sockfd, sptr, write_len, &bytes_written); @@ -207,8 +207,7 @@ CURLcode Curl_sendf(int sockfd, struct connectdata *conn, } else break; - - } while(1); + } free(s); /* free the output string */ |