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

code style: use space after semicolon

This commit is contained in:
Daniel Stenberg 2017-09-11 09:27:06 +02:00
parent 67ade28571
commit 20acb58a38
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
5 changed files with 12 additions and 11 deletions

View File

@ -396,7 +396,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file)
/*buffer contains data */ /*buffer contains data */
/* look for newline or eof */ /* look for newline or eof */
for(loop = 0;loop < want;loop++) { for(loop = 0; loop < want; loop++) {
if(file->buffer[loop] == '\n') { if(file->buffer[loop] == '\n') {
want = loop + 1;/* include newline */ want = loop + 1;/* include newline */
break; break;

View File

@ -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 we have reached the end of the list, find the next one */
if(!iter->current_element) { 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) { if(h->table[i].head) {
iter->current_element = h->table[i].head; iter->current_element = h->table[i].head;
iter->slot_index = i + 1; iter->slot_index = i + 1;

View File

@ -172,6 +172,7 @@ CURLcode Curl_http_setup_conn(struct connectdata *conn)
return CURLE_OK; return CURLE_OK;
} }
/* /*
* checkProxyHeaders() checks the linked list of custom proxy headers * checkProxyHeaders() checks the linked list of custom proxy headers
* if proxy headers are not available, then it will lookup into http header * 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 */ clen = strlen(content); /* length of the word to find */
/* find the content string in the rest of the line */ /* 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)) if(strncasecompare(start, content, clen))
return TRUE; /* match! */ return TRUE; /* match! */
} }

View File

@ -295,7 +295,7 @@ static void negotiate(struct connectdata *conn)
int i; int i;
struct TELNET *tn = (struct TELNET *) conn->data->req.protop; 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) if(i == CURL_TELOPT_ECHO)
continue; continue;
@ -792,7 +792,7 @@ static void printsub(struct Curl_easy *data,
case CURL_TELOPT_NEW_ENVIRON: case CURL_TELOPT_NEW_ENVIRON:
if(pointer[1] == CURL_TELQUAL_IS) { if(pointer[1] == CURL_TELQUAL_IS) {
infof(data, " "); infof(data, " ");
for(i = 3;i < length;i++) { for(i = 3; i < length; i++) {
switch(pointer[i]) { switch(pointer[i]) {
case CURL_NEW_ENV_VAR: case CURL_NEW_ENV_VAR:
infof(data, ", "); infof(data, ", ");
@ -967,7 +967,7 @@ static void suboption(struct connectdata *conn)
CURL_TELQUAL_IS); CURL_TELQUAL_IS);
len = 4; 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); tmplen = (strlen(v->data) + 1);
/* Add the variable only if it fits */ /* Add the variable only if it fits */
if(len + tmplen < (int)sizeof(temp)-6) { if(len + tmplen < (int)sizeof(temp)-6) {

View File

@ -88,13 +88,13 @@ static int parse_url_file(const char *filename)
static void free_urls(void) static void free_urls(void)
{ {
int i; int i;
for(i = 0;i < num_handles;i++) { for(i = 0; i < num_handles; i++) {
Curl_safefree(urlstring[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]); 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]); Curl_safefree(site_blacklist[i]);
} }
} }
@ -103,7 +103,7 @@ static int create_handles(void)
{ {
int i; int i;
for(i = 0;i < num_handles;i++) { for(i = 0; i < num_handles; i++) {
handles[i] = curl_easy_init(); handles[i] = curl_easy_init();
} }
return 0; return 0;
@ -126,7 +126,7 @@ static void remove_handles(void)
{ {
int i; int i;
for(i = 0;i < num_handles;i++) { for(i = 0; i < num_handles; i++) {
if(handles[i]) if(handles[i])
curl_easy_cleanup(handles[i]); curl_easy_cleanup(handles[i]);
} }