libsrx: minor, constify since we don't modify these args

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-02-25 19:49:27 +01:00
parent 3bdf360b2e
commit ad0463e96c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -188,8 +188,8 @@ bool lydx_get_bool(struct lyd_node *parent, const char *name)
return false;
}
int lydx_new_path(const struct ly_ctx *ctx, struct lyd_node **parent,
char *xpath_base, char *node, const char *fmt, ...)
int lydx_new_path(const struct ly_ctx *ctx, struct lyd_node **parent, const char *xpath_base,
const char *node, const char *fmt, ...)
{
char xpath[strlen(xpath_base) + strlen(node) + 2];
va_list ap;
+2 -2
View File
@@ -47,8 +47,8 @@ const char *lydx_get_vattrf(struct lyd_node *sibling, const char *namefmt, va_li
const char *lydx_get_attrf(struct lyd_node *sibling, const char *namefmt, ...)
__attribute__ ((format (printf, 2, 3)));
int lydx_new_path(const struct ly_ctx *ctx, struct lyd_node **parent, char *xpath_base,
char *node, const char *fmt, ...)
int lydx_new_path(const struct ly_ctx *ctx, struct lyd_node **parent, const char *xpath_base,
const char *node, const char *fmt, ...)
__attribute__ ((format (printf, 5, 6)));
static inline int lydx_is_enabled(struct lyd_node *parent, const char *name)