mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
CLEANUP: Reapply ist.cocci (4)
This reapplies ist.cocci across the whole src/ tree.
This commit is contained in:
parent
29b974fc4e
commit
0a1d9e4551
@ -1978,7 +1978,7 @@ int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *aut
|
||||
line[nmsg++] = ist(ctx->cfg->vars);
|
||||
line[nmsg++] = ist("\"\n");
|
||||
}
|
||||
if (auth->dns.ptr) {
|
||||
if (isttest(auth->dns)) {
|
||||
line[nmsg++] = ist("dns-01-record \"");
|
||||
line[nmsg++] = ist2(dns_record->area, dns_record->data);
|
||||
line[nmsg++] = ist("\"\n");
|
||||
|
||||
@ -476,7 +476,7 @@ static int hstream_build_http_help_resp(struct hstream *hs)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!htx_add_data_atonce(htx, ist2(HTTP_HELP, strlen(HTTP_HELP)))) {
|
||||
if (!htx_add_data_atonce(htx, ist(HTTP_HELP))) {
|
||||
TRACE_ERROR("unable to add payload to HTX message", HS_EV_HSTRM_SEND, hs);
|
||||
goto err;
|
||||
}
|
||||
|
||||
@ -763,8 +763,7 @@ size_t htx_xfer(struct htx *dst, struct htx *src, size_t count, unsigned int fla
|
||||
switch (type) {
|
||||
case HTX_BLK_DATA:
|
||||
v = htx_get_blk_value(src, blk);
|
||||
if (v.len > max)
|
||||
v.len = max;
|
||||
v = isttrim(v, max);
|
||||
v.len = htx_add_data(dst, v);
|
||||
if (!v.len) {
|
||||
dst_full = 1;
|
||||
@ -910,8 +909,7 @@ struct htx_ret htx_xfer_blks(struct htx *dst, struct htx *src, uint32_t count,
|
||||
switch (type) {
|
||||
case HTX_BLK_DATA:
|
||||
v = htx_get_blk_value(src, blk);
|
||||
if (v.len > max)
|
||||
v.len = max;
|
||||
v = isttrim(v, max);
|
||||
v.len = htx_add_data(dst, v);
|
||||
if (!v.len)
|
||||
goto stop;
|
||||
|
||||
@ -6970,7 +6970,7 @@ void update_word_fingerprint_with_len(uint8_t *fp, struct ist word)
|
||||
int c;
|
||||
|
||||
from = 28; // begin
|
||||
for (p = word.ptr; p < word.ptr + word.len; p++) {
|
||||
for (p = word.ptr; p < istend(word); p++) {
|
||||
c = tolower((unsigned char)*p);
|
||||
switch(c) {
|
||||
case 'a'...'z': to = c - 'a' + 1; break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user