1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

no TABs in source code

This commit is contained in:
Daniel Stenberg 2003-01-15 11:44:33 +00:00
parent 77c388c928
commit 63667dfd96

View File

@ -317,7 +317,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
} }
} }
break; /* read more and try again */ break; /* read more and try again */
} }
/* decrease the size of the remaining buffer */ /* decrease the size of the remaining buffer */
@ -459,7 +459,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
FD_ZERO(&k->rkeepfd); FD_ZERO(&k->rkeepfd);
} }
break; /* exit header line loop */ break; /* exit header line loop */
} }
/* We continue reading headers, so reset the line-based /* We continue reading headers, so reset the line-based
@ -742,7 +742,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
there might be a non-header part left in the end of the read there might be a non-header part left in the end of the read
buffer. */ buffer. */
} /* end if header mode */ } /* end if header mode */
/* This is not an 'else if' since it may be a rest from the header /* This is not an 'else if' since it may be a rest from the header
parsing, where the beginning of the buffer is headers and the end parsing, where the beginning of the buffer is headers and the end
@ -1135,13 +1135,13 @@ CURLcode Curl_readwrite_init(struct connectdata *conn)
/* we want header and/or body, if neither then don't do this! */ /* we want header and/or body, if neither then don't do this! */
if(conn->bits.getheader || !data->set.no_body) { if(conn->bits.getheader || !data->set.no_body) {
FD_ZERO (&k->readfd); /* clear it */ FD_ZERO (&k->readfd); /* clear it */
if(conn->sockfd != -1) { if(conn->sockfd != -1) {
FD_SET (conn->sockfd, &k->readfd); /* read socket */ FD_SET (conn->sockfd, &k->readfd); /* read socket */
k->keepon |= KEEP_READ; k->keepon |= KEEP_READ;
} }
FD_ZERO (&k->writefd); /* clear it */ FD_ZERO (&k->writefd); /* clear it */
if(conn->writesockfd != -1) { if(conn->writesockfd != -1) {
if (data->set.expect100header) if (data->set.expect100header)
/* wait with write until we either got 100-continue or a timeout */ /* wait with write until we either got 100-continue or a timeout */
@ -1647,10 +1647,10 @@ CURLcode Curl_perform(struct SessionHandle *data)
CURLcode CURLcode
Curl_Transfer(struct connectdata *c_conn, /* connection data */ Curl_Transfer(struct connectdata *c_conn, /* connection data */
int sockfd, /* socket to read from or -1 */ int sockfd, /* socket to read from or -1 */
int size, /* -1 if unknown at this point */ int size, /* -1 if unknown at this point */
bool getheader, /* TRUE if header parsing is wanted */ bool getheader, /* TRUE if header parsing is wanted */
long *bytecountp, /* return number of bytes read or NULL */ long *bytecountp, /* return number of bytes read or NULL */
int writesockfd, /* socket to write to, it may very well be int writesockfd, /* socket to write to, it may very well be
the same we read from. -1 disables */ the same we read from. -1 disables */
long *writebytecountp /* return number of bytes written or long *writebytecountp /* return number of bytes written or