CLEANUP: Reapply ist.cocci (3)

This reapplies ist.cocci across the whole src/ tree.
This commit is contained in:
Tim Duesterhus 2024-03-29 18:21:50 +01:00 committed by Willy Tarreau
parent 296e9b8de1
commit cd5d62249f
2 changed files with 4 additions and 4 deletions

View File

@ -3947,9 +3947,9 @@ static int rslv_promex_fill_ts(void *unused, void *metric_ctx, unsigned int id,
int ret;
labels[0].name = ist("resolver");
labels[0].value = ist2(resolver->id, strlen(resolver->id));
labels[0].value = ist(resolver->id);
labels[1].name = ist("nameserver");
labels[1].value = ist2(ns->id, strlen(ns->id));
labels[1].value = ist(ns->id);
ret = resolv_fill_stats(ns->counters, stats, &id);
if (ret == 1)

View File

@ -5947,9 +5947,9 @@ static int stk_promex_fill_ts(void *unused, void *metric_ctx, unsigned int id, s
return 0;
labels[0].name = ist("name");
labels[0].value = ist2(t->id, strlen(t->id));
labels[0].value = ist(t->id);
labels[1].name = ist("type");
labels[1].value = ist2(stktable_types[t->type].kw, strlen(stktable_types[t->type].kw));
labels[1].value = ist(stktable_types[t->type].kw);
switch (id) {
case STICKTABLE_SIZE: