Fix ctl regression.

Fix ctl to correctly compute the number of children at each level of the
ctl tree.
This commit is contained in:
Jason Evans
2012-04-23 19:31:45 -07:00
parent 598779aa55
commit 65f343a632
2 changed files with 32 additions and 30 deletions

View File

@@ -17,17 +17,17 @@ struct ctl_node_s {
struct ctl_named_node_s {
struct ctl_node_s node;
const char *name;
const char *name;
/* If (nchildren == 0), this is a terminal node. */
unsigned nchildren;
const ctl_node_t *children;
int (*ctl)(const size_t *, size_t, void *, size_t *, void *,
size_t);
unsigned nchildren;
const ctl_node_t *children;
int (*ctl)(const size_t *, size_t, void *, size_t *,
void *, size_t);
};
struct ctl_indexed_node_s {
struct ctl_node_s node;
const ctl_named_node_t *(*index)(const size_t *, size_t, size_t);
const ctl_named_node_t *(*index)(const size_t *, size_t, size_t);
};
struct ctl_arena_stats_s {