code style: use space after semicolon
This commit is contained in:
Родитель
67ade28571
Коммит
20acb58a38
|
@ -396,7 +396,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file)
|
|||
|
||||
/*buffer contains data */
|
||||
/* look for newline or eof */
|
||||
for(loop = 0;loop < want;loop++) {
|
||||
for(loop = 0; loop < want; loop++) {
|
||||
if(file->buffer[loop] == '\n') {
|
||||
want = loop + 1;/* include newline */
|
||||
break;
|
||||
|
|
|
@ -300,7 +300,7 @@ Curl_hash_next_element(struct curl_hash_iterator *iter)
|
|||
|
||||
/* If we have reached the end of the list, find the next one */
|
||||
if(!iter->current_element) {
|
||||
for(i = iter->slot_index;i < h->slots;i++) {
|
||||
for(i = iter->slot_index; i < h->slots; i++) {
|
||||
if(h->table[i].head) {
|
||||
iter->current_element = h->table[i].head;
|
||||
iter->slot_index = i + 1;
|
||||
|
|
|
@ -172,6 +172,7 @@ CURLcode Curl_http_setup_conn(struct connectdata *conn)
|
|||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* checkProxyHeaders() checks the linked list of custom proxy headers
|
||||
* if proxy headers are not available, then it will lookup into http header
|
||||
|
@ -1321,7 +1322,7 @@ Curl_compareheader(const char *headerline, /* line to check */
|
|||
clen = strlen(content); /* length of the word to find */
|
||||
|
||||
/* find the content string in the rest of the line */
|
||||
for(;len >= clen;len--, start++) {
|
||||
for(; len >= clen; len--, start++) {
|
||||
if(strncasecompare(start, content, clen))
|
||||
return TRUE; /* match! */
|
||||
}
|
||||
|
|
|
@ -295,7 +295,7 @@ static void negotiate(struct connectdata *conn)
|
|||
int i;
|
||||
struct TELNET *tn = (struct TELNET *) conn->data->req.protop;
|
||||
|
||||
for(i = 0;i < CURL_NTELOPTS;i++) {
|
||||
for(i = 0; i < CURL_NTELOPTS; i++) {
|
||||
if(i == CURL_TELOPT_ECHO)
|
||||
continue;
|
||||
|
||||
|
@ -792,7 +792,7 @@ static void printsub(struct Curl_easy *data,
|
|||
case CURL_TELOPT_NEW_ENVIRON:
|
||||
if(pointer[1] == CURL_TELQUAL_IS) {
|
||||
infof(data, " ");
|
||||
for(i = 3;i < length;i++) {
|
||||
for(i = 3; i < length; i++) {
|
||||
switch(pointer[i]) {
|
||||
case CURL_NEW_ENV_VAR:
|
||||
infof(data, ", ");
|
||||
|
@ -967,7 +967,7 @@ static void suboption(struct connectdata *conn)
|
|||
CURL_TELQUAL_IS);
|
||||
len = 4;
|
||||
|
||||
for(v = tn->telnet_vars;v;v = v->next) {
|
||||
for(v = tn->telnet_vars; v; v = v->next) {
|
||||
tmplen = (strlen(v->data) + 1);
|
||||
/* Add the variable only if it fits */
|
||||
if(len + tmplen < (int)sizeof(temp)-6) {
|
||||
|
|
|
@ -88,13 +88,13 @@ static int parse_url_file(const char *filename)
|
|||
static void free_urls(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0;i < num_handles;i++) {
|
||||
for(i = 0; i < num_handles; i++) {
|
||||
Curl_safefree(urlstring[i]);
|
||||
}
|
||||
for(i = 0;i < blacklist_num_servers;i++) {
|
||||
for(i = 0; i < blacklist_num_servers; i++) {
|
||||
Curl_safefree(server_blacklist[i]);
|
||||
}
|
||||
for(i = 0;i < blacklist_num_sites;i++) {
|
||||
for(i = 0; i < blacklist_num_sites; i++) {
|
||||
Curl_safefree(site_blacklist[i]);
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ static int create_handles(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
for(i = 0;i < num_handles;i++) {
|
||||
for(i = 0; i < num_handles; i++) {
|
||||
handles[i] = curl_easy_init();
|
||||
}
|
||||
return 0;
|
||||
|
@ -126,7 +126,7 @@ static void remove_handles(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
for(i = 0;i < num_handles;i++) {
|
||||
for(i = 0; i < num_handles; i++) {
|
||||
if(handles[i])
|
||||
curl_easy_cleanup(handles[i]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче