From 0d212a3596a247313428ed978838ecd91e6b1f79 Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Tue, 29 Jul 2014 13:45:48 +0200 Subject: [PATCH] tableprinter: code cleanup --- ucw/table.c | 2 +- ucw/table.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ucw/table.c b/ucw/table.c index 30c7e64a..1e2cabb8 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -471,7 +471,7 @@ const char *table_set_option(struct table *tbl, const char *opt) const char *table_set_gary_options(struct table *tbl, char **gary_table_opts) { - for (uint i = 0; i < GARY_SIZE(gary_table_opts); i++) { + for(uint i = 0; i < GARY_SIZE(gary_table_opts); i++) { const char *rv = table_set_option(tbl, gary_table_opts[i]); if(rv != NULL) { return rv; diff --git a/ucw/table.h b/ucw/table.h index 7899d1a1..cc8ba985 100644 --- a/ucw/table.h +++ b/ucw/table.h @@ -242,8 +242,7 @@ TABLE_COL_PROTO(uintmax, uintmax_t) TABLE_COL_PROTO(s64, s64) TABLE_COL_PROTO(u64, u64) TABLE_COL_PROTO(bool, bool) - -void table_col_str(struct table *tbl, int col, const char * val); +TABLE_COL_PROTO(str, const char *) /** TABLE_COL_BODY macro enables easy definitions of bodies of table_col_ functions **/ #define TABLE_COL_BODY(_name, _type) void table_col_##_name(struct table *tbl, int col, _type val) {\ -- 2.39.2