libsmartcols: use const qualifier for scols_table_get_termwidth
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
266eecd54e
commit
e0140aa138
|
@ -257,7 +257,7 @@ enum {
|
||||||
extern int scols_table_set_termforce(struct libscols_table *tb, int force);
|
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_get_termforce(const struct libscols_table *tb);
|
||||||
extern int scols_table_set_termwidth(struct libscols_table *tb, size_t width);
|
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 */
|
/* table_print.c */
|
||||||
|
|
|
@ -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.
|
* 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;
|
return tb->termwidth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue