aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-23 07:53:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-24 23:58:22 +0100
commitdbadaebfc4e9d453232795f54d4fe5618cf8e84d (patch)
tree5899d1f99ce0d767d28d753e6e6552896d47d01f /tests
parentbc7e08471c1884a5100b6e0513a006c263ec3c6b (diff)
checksrc: code style: use 'char *name' style
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib1500.c4
-rw-r--r--tests/libtest/lib1502.c4
-rw-r--r--tests/libtest/lib1507.c2
-rw-r--r--tests/libtest/lib1511.c4
-rw-r--r--tests/libtest/lib1515.c2
-rw-r--r--tests/libtest/lib507.c6
-rw-r--r--tests/libtest/lib540.c4
-rw-r--r--tests/libtest/lib552.c2
-rw-r--r--tests/libtest/lib582.c4
-rw-r--r--tests/libtest/lib583.c6
-rw-r--r--tests/libtest/libauthretry.c2
-rw-r--r--tests/libtest/libntlmconnect.c4
-rw-r--r--tests/server/sws.c6
-rw-r--r--tests/unit/unit1308.c6
14 files changed, 28 insertions, 28 deletions
diff --git a/tests/libtest/lib1500.c b/tests/libtest/lib1500.c
index f3c495869..73d23a1b7 100644
--- a/tests/libtest/lib1500.c
+++ b/tests/libtest/lib1500.c
@@ -29,8 +29,8 @@
int test(char *URL)
{
- CURL* curls = NULL;
- CURLM* multi = NULL;
+ CURL *curls = NULL;
+ CURLM *multi = NULL;
int still_running;
int i = TEST_ERR_FAILURE;
int res = 0;
diff --git a/tests/libtest/lib1502.c b/tests/libtest/lib1502.c
index e4e1a162a..bd555cbaf 100644
--- a/tests/libtest/lib1502.c
+++ b/tests/libtest/lib1502.c
@@ -41,8 +41,8 @@
int test(char *URL)
{
- CURL* easy = NULL;
- CURLM* multi = NULL;
+ CURL *easy = NULL;
+ CURLM *multi = NULL;
int still_running;
int res = 0;
diff --git a/tests/libtest/lib1507.c b/tests/libtest/lib1507.c
index 5a7994ebd..7ab305711 100644
--- a/tests/libtest/lib1507.c
+++ b/tests/libtest/lib1507.c
@@ -68,7 +68,7 @@ int test(char *URL)
CURLM *mcurl = NULL;
int still_running = 1;
struct timeval mp_start;
- struct curl_slist* rcpt_list = NULL;
+ struct curl_slist *rcpt_list = NULL;
curl_global_init(CURL_GLOBAL_DEFAULT);
diff --git a/tests/libtest/lib1511.c b/tests/libtest/lib1511.c
index bec316711..e1840e76f 100644
--- a/tests/libtest/lib1511.c
+++ b/tests/libtest/lib1511.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, 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
@@ -26,7 +26,7 @@
int test(char *URL)
{
long unmet;
- CURL* curl = NULL;
+ CURL *curl = NULL;
int res = 0;
global_init(CURL_GLOBAL_ALL);
diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c
index 2fd19bb7b..aeaf6b25e 100644
--- a/tests/libtest/lib1515.c
+++ b/tests/libtest/lib1515.c
@@ -113,7 +113,7 @@ test_cleanup:
int test(char *URL)
{
- CURLM* multi = NULL;
+ CURLM *multi = NULL;
int res = 0;
char *address = libtest_arg2;
char *port = libtest_arg3;
diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c
index 74879929b..ebe897ac8 100644
--- a/tests/libtest/lib507.c
+++ b/tests/libtest/lib507.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, 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
@@ -29,8 +29,8 @@
int test(char *URL)
{
- CURL* curls = NULL;
- CURLM* multi = NULL;
+ CURL *curls = NULL;
+ CURLM *multi = NULL;
int still_running;
int i = -1;
int res = 0;
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index 9b3b5a40e..f5d89c41d 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -48,7 +48,7 @@
CURL *eh[NUM_HANDLES];
-static int init(int num, CURLM *cm, const char* url, const char* userpwd,
+static int init(int num, CURLM *cm, const char *url, const char *userpwd,
struct curl_slist *headers)
{
int res = 0;
@@ -99,7 +99,7 @@ init_failed:
return res; /* failure */
}
-static int loop(int num, CURLM *cm, const char* url, const char* userpwd,
+static int loop(int num, CURLM *cm, const char *url, const char *userpwd,
struct curl_slist *headers)
{
CURLMsg *msg;
diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c
index 9fe4a7168..94c932527 100644
--- a/tests/libtest/lib552.c
+++ b/tests/libtest/lib552.c
@@ -147,7 +147,7 @@ static size_t write_callback(void *ptr, size_t size, size_t nmemb,
}
-static curlioerr ioctl_callback(CURL * handle, int cmd, void *clientp)
+static curlioerr ioctl_callback(CURL *handle, int cmd, void *clientp)
{
(void)clientp;
if(cmd == CURLIOCMD_RESTARTREAD) {
diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c
index 444b416ff..eec0455f6 100644
--- a/tests/libtest/lib582.c
+++ b/tests/libtest/lib582.c
@@ -145,10 +145,10 @@ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
/**
* Check for curl completion.
*/
-static int checkForCompletion(CURLM* curl, int* success)
+static int checkForCompletion(CURLM *curl, int *success)
{
int numMessages;
- CURLMsg* message;
+ CURLMsg *message;
int result = 0;
*success = 0;
while((message = curl_multi_info_read(curl, &numMessages)) != NULL) {
diff --git a/tests/libtest/lib583.c b/tests/libtest/lib583.c
index 9af48d280..23334381b 100644
--- a/tests/libtest/lib583.c
+++ b/tests/libtest/lib583.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, 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
@@ -33,8 +33,8 @@
int test(char *URL)
{
int stillRunning;
- CURLM* multiHandle = NULL;
- CURL* curl = NULL;
+ CURLM *multiHandle = NULL;
+ CURL *curl = NULL;
int res = 0;
global_init(CURL_GLOBAL_ALL);
diff --git a/tests/libtest/libauthretry.c b/tests/libtest/libauthretry.c
index 487eb8938..065a79d46 100644
--- a/tests/libtest/libauthretry.c
+++ b/tests/libtest/libauthretry.c
@@ -32,7 +32,7 @@ static CURLcode send_request(CURL *curl, const char *url, int seq,
{
CURLcode res;
size_t len = strlen(url) + 4 + 1;
- char* full_url = malloc(len);
+ char *full_url = malloc(len);
if(!full_url) {
fprintf(stderr, "Not enough memory for full url\n");
return CURLE_OUT_OF_MEMORY;
diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c
index 736222dc6..40a837ca6 100644
--- a/tests/libtest/libntlmconnect.c
+++ b/tests/libtest/libntlmconnect.c
@@ -37,7 +37,7 @@ static CURL *easy[MAX_EASY_HANDLES];
static curl_socket_t sockets[MAX_EASY_HANDLES];
static int res = 0;
-static size_t callback(char* ptr, size_t size, size_t nmemb, void* data)
+static size_t callback(char *ptr, size_t size, size_t nmemb, void *data)
{
ssize_t idx = ((CURL **) data) - easy;
curl_socket_t sock;
@@ -104,7 +104,7 @@ int test(char *url)
int num_handles = 0;
enum HandleState state = ReadyForNewHandle;
size_t urllen = strlen(url) + 4 + 1;
- char* full_url = malloc(urllen);
+ char *full_url = malloc(urllen);
start_test_timing();
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 8ebce4e7b..af0904e29 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -2231,9 +2231,9 @@ int main(int argc, char *argv[])
/* Clear out closed sockets */
for(socket_idx = num_sockets - 1; socket_idx >= 1; --socket_idx) {
if(CURL_SOCKET_BAD == all_sockets[socket_idx]) {
- char* dst = (char *) (all_sockets + socket_idx);
- char* src = (char *) (all_sockets + socket_idx + 1);
- char* end = (char *) (all_sockets + num_sockets);
+ char *dst = (char *) (all_sockets + socket_idx);
+ char *src = (char *) (all_sockets + socket_idx + 1);
+ char *end = (char *) (all_sockets + num_sockets);
memmove(dst, src, end - src);
num_sockets -= 1;
}
diff --git a/tests/unit/unit1308.c b/tests/unit/unit1308.c
index 968bcff21..5c1a00867 100644
--- a/tests/unit/unit1308.c
+++ b/tests/unit/unit1308.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, 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
@@ -42,8 +42,8 @@ static size_t print_httppost_callback(void *arg, const char *buf, size_t len)
UNITTEST_START
int rc;
- struct curl_httppost* post = NULL;
- struct curl_httppost* last = NULL;
+ struct curl_httppost *post = NULL;
+ struct curl_httppost *last = NULL;
size_t total_size = 0;
char buffer[] = "test buffer";