diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-09 06:51:31 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-09 06:51:31 +0200 |
commit | ec5ba7eb521626a85d2ab22e97eb1298b2ff6f55 (patch) | |
tree | e23054b1182a8d79172fed5360a6fc26380eb5c5 /include/str_table.h | |
parent | 322f6069de6c5e460a0c3b253d36b90ac30bef70 (diff) |
Cleanup: mark sqfs_xattr_writer_flush writer argument as const
It does not make any changes to the writer itself, so mark it as
const. This also requires some similar changes to the string table.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/str_table.h')
-rw-r--r-- | include/str_table.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/str_table.h b/include/str_table.h index a843e62..7ae050e 100644 --- a/include/str_table.h +++ b/include/str_table.h @@ -42,12 +42,13 @@ int str_table_get_index(str_table_t *table, const char *str, size_t *idx); /* Resolve a unique ID to the string it represents. Returns NULL if the ID is unknown, i.e. out of bounds. */ SQFS_INTERNAL -const char *str_table_get_string(str_table_t *table, size_t index); +const char *str_table_get_string(const str_table_t *table, size_t index); SQFS_INTERNAL void str_table_add_ref(str_table_t *table, size_t index); SQFS_INTERNAL void str_table_del_ref(str_table_t *table, size_t index); -SQFS_INTERNAL size_t str_table_get_ref_count(str_table_t *table, size_t index); +SQFS_INTERNAL +size_t str_table_get_ref_count(const str_table_t *table, size_t index); #endif /* STR_TABLE_H */ |