]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: position of title in fact unsigned
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Sun, 24 Jan 2016 22:34:53 +0000 (23:34 +0100)
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>
Sun, 24 Jan 2016 23:12:14 +0000 (00:12 +0100)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/table.c

index 2f700d0cde600d3d45db3d13304b31c315d0aa7a..e5a0fccb36e5818f5e677b2af58fda1f903f3e36 100644 (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);
index 6657dec7a2e058caf5104ce119ab8ee6ea070649..3a787fae3ddb2b5f7df24fa84fca1d1c0e2a088d 100644 (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;