mirror of
https://github.com/curl/curl.git
synced 2026-07-26 21:57:18 +03:00
code style: use spaces around pluses
This commit is contained in:
parent
ca86006deb
commit
e5743f08e7
104 changed files with 386 additions and 366 deletions
|
|
@ -449,7 +449,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
if(('-' != flag[0]) ||
|
||||
(('-' == flag[0]) && ('-' == flag[1]))) {
|
||||
/* this should be a long name */
|
||||
const char *word = ('-' == flag[0]) ? flag+2 : flag;
|
||||
const char *word = ('-' == flag[0]) ? flag + 2 : flag;
|
||||
size_t fnam = strlen(word);
|
||||
int numhits = 0;
|
||||
|
||||
|
|
@ -1004,7 +1004,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
#ifdef USE_METALINK
|
||||
int mlmaj, mlmin, mlpatch;
|
||||
metalink_get_version(&mlmaj, &mlmin, &mlpatch);
|
||||
if((mlmaj*10000)+(mlmin*100)+mlpatch < CURL_REQ_LIBMETALINK_VERS) {
|
||||
if((mlmaj*10000)+(mlmin*100) + mlpatch < CURL_REQ_LIBMETALINK_VERS) {
|
||||
warnf(global,
|
||||
"--metalink option cannot be used because the version of "
|
||||
"the linked libmetalink library is too old. "
|
||||
|
|
@ -1354,11 +1354,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
memcpy(config->postfields, oldpost, (size_t)oldlen);
|
||||
/* use byte value 0x26 for '&' to accommodate non-ASCII platforms */
|
||||
config->postfields[oldlen] = '\x26';
|
||||
memcpy(&config->postfields[oldlen+1], postdata, size);
|
||||
config->postfields[oldlen+1+size] = '\0';
|
||||
memcpy(&config->postfields[oldlen + 1], postdata, size);
|
||||
config->postfields[oldlen + 1 + size] = '\0';
|
||||
Curl_safefree(oldpost);
|
||||
Curl_safefree(postdata);
|
||||
config->postfieldsize += size+1;
|
||||
config->postfieldsize += size + 1;
|
||||
}
|
||||
else {
|
||||
config->postfields = postdata;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue