aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-12-13 23:34:59 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-12-13 23:39:11 +0100
commitb228d2952b6762b5c9b851fba0cf391e80c6761a (patch)
treed8d52d61b047a31b1c51851f1b48c4dc9cfcd1f4 /tests/libtest
parent5fad800efdf1cb84f863f3634b85c898fb3d0d66 (diff)
checksrc: stricter no-space-before-paren enforcement
In order to make the code style more uniform everywhere
Diffstat (limited to 'tests/libtest')
-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
5 files changed, 8 insertions, 8 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 */