CLEANUP: Reapply ist.cocci (4)

This reapplies ist.cocci across the whole src/ tree.
This commit is contained in:
Tim Duesterhus 2026-04-28 21:59:12 +02:00 committed by Willy Tarreau
parent 29b974fc4e
commit 0a1d9e4551
4 changed files with 5 additions and 7 deletions

View File

@ -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");

View File

@ -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;
}

View File

@ -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;

View File

@ -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;