int i;
#endif
- xlat_root = rbtree_create(xlat_cmp, free, 0);
+ xlat_root = rbtree_create(NULL, xlat_cmp, free, 0);
if (!xlat_root) {
DEBUG("xlat_register: Failed to create tree");
return -1;
return -(p - fmt);
}
- if (!fr_hex2bin((uint8_t *) q, p, 2)) {
+ if (!fr_hex2bin((uint8_t *) q, 1, p, 2)) {
talloc_free(node);
*error = "Invalid hex characters";
return -(p - fmt);
}
#ifdef DEBUG_XLAT
-static const char *xlat_spaces = " ";
+static const char xlat_spaces[] = " ";
#endif
static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * const node,