aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-11 09:27:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-12 09:50:24 +0200
commit20acb58a38a605cab1b17c0b3379e43cf09b40a6 (patch)
treec7a4b4722ef967e0b13c26b1c1e9d9f6a1a29790
parent67ade28571da2ac688d6edeb26f3abfb4f4ae3e8 (diff)
code style: use space after semicolon
-rw-r--r--docs/examples/fopen.c2
-rw-r--r--lib/hash.c2
-rw-r--r--lib/http.c3
-rw-r--r--lib/telnet.c6
-rw-r--r--tests/libtest/lib1900.c10
5 files changed, 12 insertions, 11 deletions
diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c
index d115cf396..eb27c6ae9 100644
--- a/docs/examples/fopen.c
+++ b/docs/examples/fopen.c
@@ -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;
diff --git a/lib/hash.c b/lib/hash.c
index 3220d4493..c99b1b699 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -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;
diff --git a/lib/http.c b/lib/http.c
index 133c8e3c6..8dfea7b70 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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! */
}
diff --git a/lib/telnet.c b/lib/telnet.c
index fbb822ebc..a7bed3da1 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -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) {
diff --git a/tests/libtest/lib1900.c b/tests/libtest/lib1900.c
index 468c12ffa..109c57062 100644
--- a/tests/libtest/lib1900.c
+++ b/tests/libtest/lib1900.c
@@ -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]);
}