summaryrefslogtreecommitdiff
path: root/src
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 /src
parent5fad800efdf1cb84f863f3634b85c898fb3d0d66 (diff)
downloadcurl-b228d2952b6762b5c9b851fba0cf391e80c6761a.tar.gz
checksrc: stricter no-space-before-paren enforcement
In order to make the code style more uniform everywhere
Diffstat (limited to 'src')
-rw-r--r--src/tool_cb_dbg.c2
-rw-r--r--src/tool_doswin.c2
-rw-r--r--src/tool_getparam.c2
-rw-r--r--src/tool_homedir.c4
-rw-r--r--src/tool_operate.c2
-rw-r--r--src/tool_paramhlp.c2
-rw-r--r--src/tool_urlglob.c4
-rw-r--r--src/tool_writeenv.c2
-rw-r--r--src/tool_writeout.c2
9 files changed, 11 insertions, 11 deletions
diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c
index 221eae67f..8e81f1be3 100644
--- a/src/tool_cb_dbg.c
+++ b/src/tool_cb_dbg.c
@@ -182,7 +182,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
}
#endif /* CURL_DOES_CONVERSIONS */
- switch (type) {
+ switch(type) {
case CURLINFO_TEXT:
fprintf(output, "%s== Info: %s", timebuf, data);
default: /* in case a new one is introduced to shock us */
diff --git a/src/tool_doswin.c b/src/tool_doswin.c
index eb3b29c46..48af3bfb8 100644
--- a/src/tool_doswin.c
+++ b/src/tool_doswin.c
@@ -431,7 +431,7 @@ SANITIZEcode msdosify(char **const sanitized, const char *file_name,
*d = 'x';
}
else {
- memcpy (d, "plus", 4);
+ memcpy(d, "plus", 4);
d += 3;
}
}
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 5b6f3bec9..247f8d38c 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1628,7 +1628,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
break;
case 'L':
config->followlocation = toggle; /* Follow Location: HTTP headers */
- switch (subletter) {
+ switch(subletter) {
case 't':
/* Continue to send authentication (user+password) when following
* locations, even when hostname changed */
diff --git a/src/tool_homedir.c b/src/tool_homedir.c
index ccf04b596..26b6c535c 100644
--- a/src/tool_homedir.c
+++ b/src/tool_homedir.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, 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
@@ -46,7 +46,7 @@ static char *GetEnv(const char *variable, char do_expand)
}
if(do_expand && strchr(variable, '%')) {
/* buf2 == variable if not expanded */
- rc = ExpandEnvironmentStrings (variable, buf2, sizeof(buf2));
+ rc = ExpandEnvironmentStrings(variable, buf2, sizeof(buf2));
if(rc > 0 && rc < sizeof(buf2) &&
!strchr(buf2, '%')) /* no vars still unexpanded */
env = buf2;
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 94d87fecf..2c9b4465a 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -653,7 +653,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
infd = -1;
if(stat(uploadfile, &fileinfo) == 0) {
fileinfo.st_size = VmsSpecialSize(uploadfile, &fileinfo);
- switch (fileinfo.st_fab_rfm) {
+ switch(fileinfo.st_fab_rfm) {
case FAB$C_VAR:
case FAB$C_VFC:
case FAB$C_STMCR:
diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c
index 7de490525..09910a784 100644
--- a/src/tool_paramhlp.c
+++ b/src/tool_paramhlp.c
@@ -313,7 +313,7 @@ long proto2num(struct OperationConfig *config, long *val, const char *str)
for(pp=protos; pp->name; pp++) {
if(curl_strequal(token, pp->name)) {
- switch (action) {
+ switch(action) {
case deny:
*val &= ~(pp->bit);
break;
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index e68e30e84..0edfac6f2 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -516,7 +516,7 @@ CURLcode glob_next_url(char **globbed, URLGlob *glob)
for(i = 0; carry && (i < glob->size); i++) {
carry = FALSE;
pat = &glob->pattern[glob->size - 1 - i];
- switch (pat->type) {
+ switch(pat->type) {
case UPTSet:
if((pat->content.Set.elements) &&
(++pat->content.Set.ptr_s == pat->content.Set.size)) {
@@ -631,7 +631,7 @@ CURLcode glob_match_url(char **result, char *filename, URLGlob *glob)
}
if(pat) {
- switch (pat->type) {
+ switch(pat->type) {
case UPTSet:
if(pat->content.Set.elements) {
appendthis = pat->content.Set.elements[pat->content.Set.ptr_s];
diff --git a/src/tool_writeenv.c b/src/tool_writeenv.c
index 198847eef..0bc075aba 100644
--- a/src/tool_writeenv.c
+++ b/src/tool_writeenv.c
@@ -78,7 +78,7 @@ void ourWriteEnv(CURL *curl)
double doubleinfo;
for(i=0; variables[i].name; i++) {
- switch (variables[i].type) {
+ switch(variables[i].type) {
case writeenv_STRING:
if(curl_easy_getinfo(curl, variables[i].id, &string) == CURLE_OK)
internalSetEnv(variables[i].name, string);
diff --git a/src/tool_writeout.c b/src/tool_writeout.c
index 3737df801..e1b7819ed 100644
--- a/src/tool_writeout.c
+++ b/src/tool_writeout.c
@@ -295,7 +295,7 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo)
curl_easy_getinfo(curl, CURLINFO_HTTP_VERSION,
&longinfo)) {
const char *version = "0";
- switch (longinfo) {
+ switch(longinfo) {
case CURL_HTTP_VERSION_1_0:
version = "1.0";
break;