Skip to content

Commit 5adea1c

Browse files
committed
make function static
1 parent 4544005 commit 5adea1c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/lib/unlang/xlat_priv.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,6 @@ int xlat_register_expressions(void);
340340
/*
341341
* xlat_tokenize.c
342342
*/
343-
int xlat_tokenize_expansion(xlat_exp_head_t *head, fr_sbuff_t *in,
344-
tmpl_rules_t const *t_rules);
345-
346343
ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node,
347344
fr_sbuff_escape_rules_t const *e_rules, char c);
348345

src/lib/unlang/xlat_tokenize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ static bool const tmpl_attr_allowed_chars[UINT8_MAX + 1] = {
614614
['['] = true, [']'] = true, // tmpls and attribute arrays
615615
};
616616

617-
int xlat_tokenize_expansion(xlat_exp_head_t *head, fr_sbuff_t *in,
618-
tmpl_rules_t const *t_rules)
617+
static CC_HINT(nonnull(1,2)) int xlat_tokenize_expansion(xlat_exp_head_t *head, fr_sbuff_t *in,
618+
tmpl_rules_t const *t_rules)
619619
{
620620
size_t len;
621621
fr_sbuff_marker_t s_m;

0 commit comments

Comments
 (0)