diff --git a/b2/chr.c b/b2/chr.c index c15f177..d674356 100644 --- a/b2/chr.c +++ b/b2/chr.c @@ -179,7 +179,7 @@ static void dump_one_rule(FILE *file, const struct field *field, int level) fprintf(file, "|"); if (cond->relop != rel_eq) dump_relop(file, cond->relop); - dump(file, field->fmt, &cond->value); + dump_param(file, field->fmt, &cond->value); } fprintf(file, ":"); dump_action(file, &sel->act, level); diff --git a/b2/db.c b/b2/db.c index f431d3e..1d9c98f 100644 --- a/b2/db.c +++ b/b2/db.c @@ -190,7 +190,7 @@ void part_dump(FILE *file, const struct part *part) fprintf(file, " "); for (p = part->param; p; p = p->next) { fprintf(file, " %s=", p->u.field->name); - dump(file, p->u.field->fmt, &p->value); + dump_param(file, p->u.field->fmt, &p->value); } fprintf(file, "\n"); } diff --git a/b2/dump.c b/b2/dump.c index b4e9f2a..73bbe55 100644 --- a/b2/dump.c +++ b/b2/dump.c @@ -59,7 +59,7 @@ void dump_rel(FILE *file, const struct format *fmt, const struct value *v) } -void dump(FILE *file, const struct format *fmt, const struct value *v) +void dump_param(FILE *file, const struct format *fmt, const struct value *v) { fmt->ops->dump(file, fmt, v); } diff --git a/b2/param.h b/b2/param.h index 9f74bd3..86a3a41 100644 --- a/b2/param.h +++ b/b2/param.h @@ -111,7 +111,7 @@ void dump_name(FILE *file, const struct format *fmt, const struct value *v); void dump_set(FILE *file, const struct format *fmt, const struct value *v); void dump_abs(FILE *file, const struct format *fmt, const struct value *v); void dump_rel(FILE *file, const struct format *fmt, const struct value *v); -void dump(FILE *file, const struct format *fmt, const struct value *v); +void dump_param(FILE *file, const struct format *fmt, const struct value *v); extern const struct param_ops param_ops_name; extern const struct param_ops param_ops_set;