From: Igor Gnatenko Date: Sun, 24 Jan 2016 22:34:53 +0000 (+0100) Subject: libsmartcols: position of title in fact unsigned X-Git-Tag: v2.28-rc1~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfc3d8b48ef9f2c10f3a4c8f932ed941e8f048be;p=thirdparty%2Futil-linux.git libsmartcols: position of title in fact unsigned Signed-off-by: Igor Gnatenko --- diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in index 2f700d0cde..e5a0fccb36 100644 --- a/libsmartcols/src/libsmartcols.h.in +++ b/libsmartcols/src/libsmartcols.h.in @@ -187,7 +187,7 @@ extern struct libscols_line *scols_copy_line(struct libscols_line *ln); /* table */ extern int scols_table_colors_wanted(struct libscols_table *tb); extern int scols_table_set_name(struct libscols_table *tb, const char *name); -extern int scols_table_set_title(struct libscols_table *tb, const char *title, int position, const char *color); +extern int scols_table_set_title(struct libscols_table *tb, const char *title, unsigned int position, const char *color); extern int scols_table_is_raw(struct libscols_table *tb); extern int scols_table_is_ascii(struct libscols_table *tb); extern int scols_table_is_json(struct libscols_table *tb); diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c index 6657dec7a2..3a787fae3d 100644 --- a/libsmartcols/src/table.c +++ b/libsmartcols/src/table.c @@ -133,7 +133,7 @@ int scols_table_set_name(struct libscols_table *tb, const char *name) * * Returns: 0, a negative number in case of an error. */ -int scols_table_set_title(struct libscols_table *tb, const char *title, int position, const char *color) +int scols_table_set_title(struct libscols_table *tb, const char *title, unsigned int position, const char *color) { char *p = NULL; char *q = NULL;