btrfs-progs: print-tree: Enhance warning on tree block level mismatch and error handling
[platform/upstream/btrfs-progs.git] / string-table.h
index 657aae4..516ea97 100644 (file)
 #define __STRING_TABLE_H__
 
 struct string_table {
-
-       int     ncols, nrows;
-       char    *cells[];
-
+       int ncols;
+       int nrows;
+       char *cells[];
 };
 
-
 struct string_table *table_create(int columns, int rows);
 char *table_printf(struct string_table *tab, int column, int row,
-                         char *fmt, ...);
+                         const char *fmt, ...);
 char *table_vprintf(struct string_table *tab, int column, int row,
-                         char *fmt, va_list ap);
+                         const char *fmt, va_list ap);
 void table_dump(struct string_table *tab);
 void table_free(struct string_table *);