(void)verifyconnect(sockfd, NULL);
#endif
- while(1) {
+ for(;;) {
/* now select() until we get connect or timeout */
rc = Curl_socket_ready(CURL_SOCKET_BAD, sockfd, (int)(timeout_msec>1000?
}
}
- do {
+ for(;;) {
if( bind(sockfd, sock, sizeof_sa) >= 0) {
/* we succeeded to bind */
struct Curl_sockaddr_storage add;
}
else
break;
- } while(1);
+ }
data->state.os_errno = error = SOCKERRNO;
failf(data, "bind failed with errno %d: %s",
}
#endif /* CURL_DOES_CONVERSIONS */
- while(1) {
+ for(;;) {
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
conn->data_prot = prot_cmd;
#endif
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);
struct timeval tvnow;
long conntime;
*n = 0;
- do {
+ for(;;) {
tvnow = Curl_tvnow();
/* calculating how long connection is establishing */
conntime = Curl_tvdiff(tvnow, conn->created);
buffersize -= nread;
buf += nread;
allread += nread;
- } while(1);
+ }
return result;
}
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
switch(waitret) {
case WAIT_TIMEOUT:
{
- while(1) {
+ for(;;) {
if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
keepon = FALSE;
code = CURLE_READ_ERROR;
* performed after this do-while loop.
*/
- do {
+ for(;;) {
res = connect_host(data, &conn); /* primary connection */
if(res == CURLE_OK) {
}
break; /* it only reaches here when this shouldn't loop */
- } while(1); /* loop if Location: */
+ } /* loop if Location: */
if(newurl)
free(newurl);