diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-06 17:35:16 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-06 22:08:36 +0100 |
commit | acb690df464829f58bc7e29abaab7e07349e8e3a (patch) | |
tree | 0d8484b73a4efa28be8fb4be48bf568bafa9bbf1 /lib/sqfs/xattr/xattr_writer.h | |
parent | 34d2755572b1a6ae73e4143a5b4f97c8ab3d0b0f (diff) |
Cleanup: replace ad-hoc dynamic array in sqfs_xattr_writer_t
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/xattr/xattr_writer.h')
-rw-r--r-- | lib/sqfs/xattr/xattr_writer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqfs/xattr/xattr_writer.h b/lib/sqfs/xattr/xattr_writer.h index 8ff9691..ff8479a 100644 --- a/lib/sqfs/xattr/xattr_writer.h +++ b/lib/sqfs/xattr/xattr_writer.h @@ -20,6 +20,7 @@ #include "str_table.h" #include "rbtree.h" +#include "array.h" #include "util.h" #include <stdlib.h> @@ -51,9 +52,7 @@ struct sqfs_xattr_writer_t { str_table_t keys; str_table_t values; - sqfs_u64 *kv_pairs; - size_t max_pairs; - size_t num_pairs; + array_t kv_pairs; size_t kv_start; |