summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib506.c4
-rw-r--r--tests/libtest/lib539.c2
-rw-r--r--tests/libtest/lib552.c2
-rw-r--r--tests/libtest/lib586.c4
-rw-r--r--tests/libtest/testtrace.c4
-rw-r--r--tests/server/sockfilt.c2
-rw-r--r--tests/server/util.c4
-rw-r--r--tests/unit/unit1305.c2
8 files changed, 12 insertions, 12 deletions
diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c
index 8de30c20b..32995e1db 100644
--- a/tests/libtest/lib506.c
+++ b/tests/libtest/lib506.c
@@ -50,7 +50,7 @@ static void my_lock(CURL *handle, curl_lock_data data,
(void)handle;
(void)laccess;
- switch (data) {
+ switch(data) {
case CURL_LOCK_DATA_SHARE:
what = "share";
locknum = 0;
@@ -86,7 +86,7 @@ static void my_unlock(CURL *handle, curl_lock_data data, void *useptr)
struct userdata *user = (struct userdata *)useptr;
int locknum;
(void)handle;
- switch (data) {
+ switch(data) {
case CURL_LOCK_DATA_SHARE:
what = "share";
locknum = 0;
diff --git a/tests/libtest/lib539.c b/tests/libtest/lib539.c
index ec4ea530e..beee91401 100644
--- a/tests/libtest/lib539.c
+++ b/tests/libtest/lib539.c
@@ -65,7 +65,7 @@ int test(char *URL)
return TEST_ERR_MAJOR_BAD;
}
- slist = curl_slist_append (NULL, "SYST");
+ slist = curl_slist_append(NULL, "SYST");
if(slist == NULL) {
free(newURL);
curl_easy_cleanup(curl);
diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c
index 94c932527..ae2e691f1 100644
--- a/tests/libtest/lib552.c
+++ b/tests/libtest/lib552.c
@@ -89,7 +89,7 @@ int my_trace(CURL *handle, curl_infotype type,
const char *text;
(void)handle; /* prevent compiler warning */
- switch (type) {
+ switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== Info: %s", (char *)data);
default: /* in case a new one is introduced to shock us */
diff --git a/tests/libtest/lib586.c b/tests/libtest/lib586.c
index eb7cfa0a9..9b789eec7 100644
--- a/tests/libtest/lib586.c
+++ b/tests/libtest/lib586.c
@@ -45,7 +45,7 @@ static void my_lock(CURL *handle, curl_lock_data data,
(void)handle;
(void)laccess;
- switch (data) {
+ switch(data) {
case CURL_LOCK_DATA_SHARE:
what = "share";
break;
@@ -72,7 +72,7 @@ static void my_unlock(CURL *handle, curl_lock_data data, void *useptr)
const char *what;
struct userdata *user = (struct userdata *)useptr;
(void)handle;
- switch ( data) {
+ switch(data) {
case CURL_LOCK_DATA_SHARE:
what = "share";
break;
diff --git a/tests/libtest/testtrace.c b/tests/libtest/testtrace.c
index 958719f61..5eeeeb65d 100644
--- a/tests/libtest/testtrace.c
+++ b/tests/libtest/testtrace.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, 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
@@ -110,7 +110,7 @@ int libtest_debug_cb(CURL *handle, curl_infotype type,
now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec);
}
- switch (type) {
+ switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "%s== Info: %s", timestr, (char *)data);
default: /* in case a new one is introduced to shock us */
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 38aa51e67..e064b6c7d 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -1283,7 +1283,7 @@ static curl_socket_t sockdaemon(curl_socket_t sock,
sclose(sock);
return CURL_SOCKET_BAD;
}
- switch (localaddr.sa.sa_family) {
+ switch(localaddr.sa.sa_family) {
case AF_INET:
*listenport = ntohs(localaddr.sa4.sin_port);
break;
diff --git a/tests/server/util.c b/tests/server/util.c
index e65470786..8465cd9c3 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -135,7 +135,7 @@ void logmsg(const char *msg, ...)
#ifdef WIN32
/* use instead of perror() on generic windows */
-void win32_perror (const char *msg)
+void win32_perror(const char *msg)
{
char buf[512];
DWORD err = SOCKERRNO;
@@ -315,7 +315,7 @@ static char raw_toupper(char in)
if(in >= 'a' && in <= 'z')
return (char)('A' + in - 'a');
#else
- switch (in) {
+ switch(in) {
case 'a':
return 'A';
case 'b':
diff --git a/tests/unit/unit1305.c b/tests/unit/unit1305.c
index ad270f565..9af0727c3 100644
--- a/tests/unit/unit1305.c
+++ b/tests/unit/unit1305.c
@@ -78,7 +78,7 @@ static Curl_addrinfo *fake_ai(void)
static Curl_addrinfo *ai;
int ss_size;
- ss_size = sizeof (struct sockaddr_in);
+ ss_size = sizeof(struct sockaddr_in);
if((ai = calloc(1, sizeof(Curl_addrinfo))) == NULL)
return NULL;