From: Alan T. DeKok Date: Mon, 7 Feb 2022 13:33:38 +0000 (-0500) Subject: use fr_slen_t for print functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5541b7d9361ad52026863836fc53f703a3ef286a;p=thirdparty%2Ffreeradius-server.git use fr_slen_t for print functions --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 22428b41f36..3b716ab3539 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -127,7 +127,7 @@ static fr_value_box_t *xlat_box(xlat_exp_t *node) return tmpl_value(node->vpt); } -static ssize_t xlat_expr_print_unary(fr_sbuff_t *out, xlat_exp_t const *node, UNUSED void *inst, fr_sbuff_escape_rules_t const *e_rules) +static fr_slen_t xlat_expr_print_unary(fr_sbuff_t *out, xlat_exp_t const *node, UNUSED void *inst, fr_sbuff_escape_rules_t const *e_rules) { size_t at_in = fr_sbuff_used_total(out); @@ -137,7 +137,7 @@ static ssize_t xlat_expr_print_unary(fr_sbuff_t *out, xlat_exp_t const *node, UN return fr_sbuff_used_total(out) - at_in; } -static ssize_t xlat_expr_print_binary(fr_sbuff_t *out, xlat_exp_t const *node, UNUSED void *inst, fr_sbuff_escape_rules_t const *e_rules) +static fr_slen_t xlat_expr_print_binary(fr_sbuff_t *out, xlat_exp_t const *node, UNUSED void *inst, fr_sbuff_escape_rules_t const *e_rules) { size_t at_in = fr_sbuff_used_total(out); @@ -388,7 +388,7 @@ typedef struct { fr_value_box_list_t list; } xlat_logical_rctx_t; -static ssize_t xlat_expr_print_logical(fr_sbuff_t *out, xlat_exp_t const *node, void *instance, fr_sbuff_escape_rules_t const *e_rules) +static fr_slen_t xlat_expr_print_logical(fr_sbuff_t *out, xlat_exp_t const *node, void *instance, fr_sbuff_escape_rules_t const *e_rules) { size_t at_in = fr_sbuff_used_total(out); xlat_logical_inst_t *inst = instance; diff --git a/src/lib/unlang/xlat_priv.h b/src/lib/unlang/xlat_priv.h index f7e36e869f9..467a3f244e2 100644 --- a/src/lib/unlang/xlat_priv.h +++ b/src/lib/unlang/xlat_priv.h @@ -38,7 +38,7 @@ extern "C" { # define XLAT_DEBUG(...) #endif -typedef ssize_t (*xlat_print_t)(fr_sbuff_t *in, xlat_exp_t const *self, void *inst, fr_sbuff_escape_rules_t const *e_rules); +typedef fr_slen_t (*xlat_print_t)(fr_sbuff_t *in, xlat_exp_t const *self, void *inst, fr_sbuff_escape_rules_t const *e_rules); typedef struct xlat_s {