mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:13:32 +03:00
checksrc: use space after comma
This commit is contained in:
parent
a6b8fe2a5f
commit
9395999543
37 changed files with 171 additions and 140 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue