From bfc3d8b48ef9f2c10f3a4c8f932ed941e8f048be Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 24 Jan 2016 23:34:53 +0100 Subject: [PATCH] libsmartcols: position of title in fact unsigned Signed-off-by: Igor Gnatenko --- libsmartcols/src/libsmartcols.h.in | 2 +- libsmartcols/src/table.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in index 2f700d0cd..e5a0fccb3 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 6657dec7a..3a787fae3 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;