summaryrefslogtreecommitdiff
path: root/string-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'string-table.c')
-rw-r--r--string-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string-table.c b/string-table.c
index 5eda1ac5..95833768 100644
--- a/string-table.c
+++ b/string-table.c
@@ -49,7 +49,7 @@ struct string_table *table_create(int columns, int rows)
* be replaced by a '=====' dimensioned on the basis of the column width
*/
char *table_vprintf(struct string_table *tab, int column, int row,
- char *fmt, va_list ap)
+ const char *fmt, va_list ap)
{
int idx = tab->ncols * row + column;
char *msg = calloc(100, 1);
@@ -71,7 +71,7 @@ char *table_vprintf(struct string_table *tab, int column, int row,
*/
__attribute__ ((format (printf, 4, 5)))
char *table_printf(struct string_table *tab, int column, int row,
- char *fmt, ...)
+ const char *fmt, ...)
{
va_list ap;
char *ret;