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;