From 9395999543eaad251d61a83b50f461cc29884cd2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 Mar 2015 13:41:49 +0100 Subject: checksrc: use space after comma --- src/tool_dirhie.c | 4 ++-- src/tool_getparam.c | 2 +- src/tool_homedir.c | 6 +++--- src/tool_parsecfg.c | 2 +- src/tool_strdup.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') 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, , et al. + * Copyright (C) 1998 - 2015, 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 @@ -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, , et al. + * Copyright (C) 1998 - 2015, 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 @@ -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, , et al. + * Copyright (C) 1998 - 2015, 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 @@ -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; -- cgit v1.2.3