aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-17 13:41:49 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-17 13:57:37 +0100
commit9395999543eaad251d61a83b50f461cc29884cd2 (patch)
tree4213f0e89d018bb7ab517a03a8f1e337e4e032cf /src
parenta6b8fe2a5f6f18bd1a6fd0767a961fa1e87aba3e (diff)
checksrc: use space after comma
Diffstat (limited to 'src')
-rw-r--r--src/tool_dirhie.c4
-rw-r--r--src/tool_getparam.c2
-rw-r--r--src/tool_homedir.c6
-rw-r--r--src/tool_parsecfg.c2
-rw-r--r--src/tool_strdup.c4
5 files changed, 9 insertions, 9 deletions
diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c
index 5965f7a74..b6a8067c9 100644
--- a/src/tool_dirhie.c
+++ b/src/tool_dirhie.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, 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
@@ -129,7 +129,7 @@ CURLcode create_dir_hierarchy(const char *outfile, FILE *errors)
snprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir);
}
if(access(dirbuildup, F_OK) == -1) {
- if(-1 == mkdir(dirbuildup,(mode_t)0000750)) {
+ if(-1 == mkdir(dirbuildup, (mode_t)0000750)) {
show_dir_errno(errors, dirbuildup);
result = CURLE_WRITE_ERROR;
break; /* get out of loop */
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index b7c88d881..30ad5873e 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1310,7 +1310,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
break;
case 'f': /* crypto engine */
GetStr(&config->engine, nextarg);
- if(config->engine && curlx_raw_equal(config->engine,"list"))
+ if(config->engine && curlx_raw_equal(config->engine, "list"))
return PARAM_ENGINES_REQUESTED;
break;
case 'g': /* CA info PEM file */
diff --git a/src/tool_homedir.c b/src/tool_homedir.c
index 11bb4ef3d..73a66f8f6 100644
--- a/src/tool_homedir.c
+++ b/src/tool_homedir.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, 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
@@ -44,11 +44,11 @@ static char *GetEnv(const char *variable, char do_expand)
env = buf1;
variable = buf1;
}
- if(do_expand && strchr(variable,'%')) {
+ if(do_expand && strchr(variable, '%')) {
/* buf2 == variable if not expanded */
rc = ExpandEnvironmentStrings (variable, buf2, sizeof(buf2));
if(rc > 0 && rc < sizeof(buf2) &&
- !strchr(buf2,'%')) /* no vars still unexpanded */
+ !strchr(buf2, '%')) /* no vars still unexpanded */
env = buf2;
}
#else
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index 33c45ed84..fabdbc20b 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -114,7 +114,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
#endif
}
- if(strcmp(filename,"-"))
+ if(strcmp(filename, "-"))
file = fopen(filename, "r");
else
file = stdin;
diff --git a/src/tool_strdup.c b/src/tool_strdup.c
index 965675c3d..a0bbe88b2 100644
--- a/src/tool_strdup.c
+++ b/src/tool_strdup.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, 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
@@ -39,7 +39,7 @@ char *strdup(const char *str)
if(!newstr)
return (char *)NULL;
- memcpy(newstr,str,(len+1)*sizeof(char));
+ memcpy(newstr, str, (len+1)*sizeof(char));
return newstr;