From: Robert Kessl Date: Tue, 29 Jul 2014 11:45:48 +0000 (+0200) Subject: tableprinter: code cleanup X-Git-Tag: v6.1~3^2~27 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0d212a3596a247313428ed978838ecd91e6b1f79;p=libucw.git tableprinter: code cleanup --- 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) {\