mirror of
https://github.com/curl/curl.git
synced 2026-08-05 21:16:13 +03:00
lib/src: white space edits to comply better with code style
... as checksrc now finds and complains about these. Closes #14921
This commit is contained in:
parent
a57b45c386
commit
fbf5d507ce
128 changed files with 854 additions and 837 deletions
|
|
@ -46,7 +46,7 @@ static void splayprint(struct Curl_tree *t, int d, char output)
|
|||
return;
|
||||
|
||||
splayprint(t->larger, d + 1, output);
|
||||
for(i = 0; i<d; i++)
|
||||
for(i = 0; i < d; i++)
|
||||
if(output)
|
||||
printf(" ");
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ static bool usec_matches_seconds(timediff_t time_usec, int expected_seconds)
|
|||
bool same = (time_sec == expected_seconds);
|
||||
fprintf(stderr, "is %d us same as %d seconds? %s\n",
|
||||
(int)time_usec, expected_seconds,
|
||||
same?"Yes":"No");
|
||||
same ? "Yes" : "No");
|
||||
return same;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ static CURLcode cf_test_create(struct Curl_cfilter **pcf,
|
|||
Curl_expire(data, ctx->fail_delay_ms, EXPIRE_RUN_NOW);
|
||||
|
||||
out:
|
||||
*pcf = (!result)? cf : NULL;
|
||||
*pcf = (!result) ? cf : NULL;
|
||||
if(result) {
|
||||
free(cf);
|
||||
free(ctx);
|
||||
|
|
@ -284,9 +284,9 @@ static void check_result(struct test_case *tc,
|
|||
if(tr->cf6.creations && tr->cf4.creations && tc->pref_family) {
|
||||
/* did ipv4 and ipv6 both, expect the preferred family to start right arway
|
||||
* with the other being delayed by the happy_eyeball_timeout */
|
||||
struct ai_family_stats *stats1 = !strcmp(tc->pref_family, "v6")?
|
||||
struct ai_family_stats *stats1 = !strcmp(tc->pref_family, "v6") ?
|
||||
&tr->cf6 : &tr->cf4;
|
||||
struct ai_family_stats *stats2 = !strcmp(tc->pref_family, "v6")?
|
||||
struct ai_family_stats *stats2 = !strcmp(tc->pref_family, "v6") ?
|
||||
&tr->cf4 : &tr->cf6;
|
||||
|
||||
if(stats1->first_created > 100) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ static const char *tail_err(struct bufq *q)
|
|||
struct buf_chunk *chunk;
|
||||
|
||||
if(!q->tail) {
|
||||
return q->head? "tail is NULL, but head is not" : NULL;
|
||||
return q->head ? "tail is NULL, but head is not" : NULL;
|
||||
}
|
||||
|
||||
chunk = q->head;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue