From dbadaebfc4e9d453232795f54d4fe5618cf8e84d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 Nov 2016 07:53:24 +0100 Subject: checksrc: code style: use 'char *name' style --- tests/libtest/lib1500.c | 4 ++-- tests/libtest/lib1502.c | 4 ++-- tests/libtest/lib1507.c | 2 +- tests/libtest/lib1511.c | 4 ++-- tests/libtest/lib1515.c | 2 +- tests/libtest/lib507.c | 6 +++--- tests/libtest/lib540.c | 4 ++-- tests/libtest/lib552.c | 2 +- tests/libtest/lib582.c | 4 ++-- tests/libtest/lib583.c | 6 +++--- tests/libtest/libauthretry.c | 2 +- tests/libtest/libntlmconnect.c | 4 ++-- 12 files changed, 22 insertions(+), 22 deletions(-) (limited to 'tests/libtest') 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, , et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, , 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, , et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, , 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, , et al. + * Copyright (C) 1998 - 2011, 2016, Daniel Stenberg, , 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(); -- cgit v1.2.3