MINOR: vars: fix indentation in var_clear_buffer()

Fix indentation in var_clear_buffer() since it is exclusively using
spaces.

Could be backported if a fix depends on it.
This commit is contained in:
Aurelien DARRAGON 2024-01-18 10:59:23 +01:00
parent 0eaf42a2a4
commit 52f0b6edbe

View File

@ -328,16 +328,16 @@ static int smp_fetch_var(const struct arg *args, struct sample *smp, const char
*/ */
static inline void var_clear_buffer(struct sample *smp, struct vars *vars, struct var *var, int var_type) static inline void var_clear_buffer(struct sample *smp, struct vars *vars, struct var *var, int var_type)
{ {
if (var_type == SMP_T_STR || var_type == SMP_T_BIN) { if (var_type == SMP_T_STR || var_type == SMP_T_BIN) {
ha_free(&var->data.u.str.area); ha_free(&var->data.u.str.area);
var_accounting_diff(vars, smp->sess, smp->strm, var_accounting_diff(vars, smp->sess, smp->strm,
-var->data.u.str.data); -var->data.u.str.data);
} }
else if (var_type == SMP_T_METH && var->data.u.meth.meth == HTTP_METH_OTHER) { else if (var_type == SMP_T_METH && var->data.u.meth.meth == HTTP_METH_OTHER) {
ha_free(&var->data.u.meth.str.area); ha_free(&var->data.u.meth.str.area);
var_accounting_diff(vars, smp->sess, smp->strm, var_accounting_diff(vars, smp->sess, smp->strm,
-var->data.u.meth.str.data); -var->data.u.meth.str.data);
} }
} }
/* This function tries to create a variable whose name hash is <name_hash> in /* This function tries to create a variable whose name hash is <name_hash> in