libsmartcols: position of title in fact unsigned

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2016-01-24 23:34:53 +01:00
parent 63107d1bbc
commit bfc3d8b48e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;