mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:33:38 +03:00
checksrc: disallow spaces before labels
Out of 415 labels throughout the code base, 86 of those labels were not at the start of the line. Which means labels always at the start of the line is the favoured style overall with 329 instances. Out of the 86 labels not at the start of the line: * 75 were indented with the same indentation level of the following line * 8 were indented with exactly one space * 2 were indented with one fewer indentation level then the following line * 1 was indented with the indentation level of the following line minus three space (probably unintentional) Co-Authored-By: Viktor Szakats Closes #11134
This commit is contained in:
parent
d334b02924
commit
f198d33e8d
55 changed files with 92 additions and 86 deletions
|
|
@ -831,7 +831,7 @@ mbed_connect_step2(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
result = Curl_pin_peer_pubkey(data,
|
||||
pinnedpubkey,
|
||||
&pubkey[PUB_DER_MAX_BYTES - size], size);
|
||||
pinnedpubkey_error:
|
||||
pinnedpubkey_error:
|
||||
mbedtls_x509_crt_free(p);
|
||||
free(p);
|
||||
free(pubkey);
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,7 @@ int cert_stuff(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
cert_done = 1;
|
||||
fail:
|
||||
fail:
|
||||
EVP_PKEY_free(pri);
|
||||
X509_free(x509);
|
||||
sk_X509_pop_free(ca, X509_free);
|
||||
|
|
@ -4501,7 +4501,7 @@ static ssize_t ossl_send(struct Curl_cfilter *cf,
|
|||
}
|
||||
*curlcode = CURLE_OK;
|
||||
|
||||
out:
|
||||
out:
|
||||
return (ssize_t)rc; /* number of bytes */
|
||||
}
|
||||
|
||||
|
|
@ -4603,7 +4603,7 @@ static ssize_t ossl_recv(struct Curl_cfilter *cf,
|
|||
}
|
||||
}
|
||||
|
||||
out:
|
||||
out:
|
||||
return nread;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2358,7 +2358,7 @@ schannel_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
"schannel: decrypted data buffer: offset %zu length %zu",
|
||||
backend->decdata_offset, backend->decdata_length));
|
||||
|
||||
cleanup:
|
||||
cleanup:
|
||||
/* Warning- there is no guarantee the encdata state is valid at this point */
|
||||
DEBUGF(infof(data, "schannel: schannel_recv cleanup"));
|
||||
|
||||
|
|
|
|||
|
|
@ -3376,7 +3376,7 @@ static ssize_t sectransp_recv(struct Curl_cfilter *cf,
|
|||
|
||||
DEBUGASSERT(backend);
|
||||
|
||||
again:
|
||||
again:
|
||||
*curlcode = CURLE_OK;
|
||||
err = SSLRead(backend->ssl_ctx, buf, buffersize, &processed);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue