From b723c8841ab4eb666b2dc6f0bb69aefa86e5dd62 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 2 Jun 2012 05:18:14 -0300 Subject: [PATCH] b2/: rename a bit too general "dump" to "dump_param" --- b2/chr.c | 2 +- b2/db.c | 2 +- b2/dump.c | 2 +- b2/param.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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;