summaryrefslogtreecommitdiff
path: root/include/str_table.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-29 02:56:31 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-29 02:56:31 +0200
commit9efbaf0bdbb6f1da7b89e2134783cfb68c139e3f (patch)
tree8350bf62657851e3e06e093f470c2d034c51f115 /include/str_table.h
parent96326442317abc02adb602f825b284a844c862fe (diff)
Fix str_table_t error behaviour, comments
- str_table_t is used by libsquashfs; Don't write to stderr, report an error code instead. - Fix the comments about that and fix the SPDX license identifier while we're at it. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/str_table.h')
-rw-r--r--include/str_table.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/str_table.h b/include/str_table.h
index b60ead6..60be1d1 100644
--- a/include/str_table.h
+++ b/include/str_table.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: LGPL-3.0-or-later */
/*
* str_table.h
*
@@ -28,14 +28,12 @@ typedef struct {
size_t max_strings;
} str_table_t;
-/* `size` is the number of hash table buckets to use internally.
- Returns 0 on success. Internally writes errors to stderr. */
+/* `size` is the number of hash table buckets to use internally. */
SQFS_INTERNAL int str_table_init(str_table_t *table, size_t size);
SQFS_INTERNAL void str_table_cleanup(str_table_t *table);
-/* Resolve a string to an incremental, unique ID
- Returns 0 on success. Internally writes errors to stderr. */
+/* Resolve a string to an incremental, unique ID. */
SQFS_INTERNAL
int str_table_get_index(str_table_t *table, const char *str, size_t *idx);