]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: use const qualifier for scols_table_get_termwidth
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Fri, 23 Sep 2016 09:24:28 +0000 (11:24 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Sep 2016 09:27:35 +0000 (11:27 +0200)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/table.c

index b946d5b168327d580f1c11be736e0f61ae656024..de2f271cfec9ba06c24e52b35182e2fc6b7291ae 100644 (file)
@@ -257,7 +257,7 @@ enum {
 extern int scols_table_set_termforce(struct libscols_table *tb, int force);
 extern int scols_table_get_termforce(const struct libscols_table *tb);
 extern int scols_table_set_termwidth(struct libscols_table *tb, size_t width);
-extern size_t scols_table_get_termwidth(struct libscols_table *tb);
+extern size_t scols_table_get_termwidth(const struct libscols_table *tb);
 
 
 /* table_print.c */
index eb0998077495148dffaf90d91baa02c3ef334b34..fcb53b64aa5b1f7c4756ae73372db16098170862 100644 (file)
@@ -1148,7 +1148,7 @@ int scols_table_set_termwidth(struct libscols_table *tb, size_t width)
  *
  * Returns: terminal width or a negative value in case of an error.
  */
-size_t scols_table_get_termwidth(struct libscols_table *tb)
+size_t scols_table_get_termwidth(const struct libscols_table *tb)
 {
        return tb->termwidth;
 }