diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-20 21:29:17 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-20 21:29:17 +0100 |
commit | b4c822960aaf5b4349895cc480e959b502f6855e (patch) | |
tree | e5aab5b7e23818d9cd5a6367ca751c9c0a43f50d /lib/sqfs/id_table.c | |
parent | cf0b7d7f165c40b8501dd3ede27d0073ef4c2f84 (diff) |
Add a flag field to the id table create function
Just to be safe in case there needs to be an extension
in the future.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/id_table.c')
-rw-r--r-- | lib/sqfs/id_table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqfs/id_table.c b/lib/sqfs/id_table.c index a320eca..8c30964 100644 --- a/lib/sqfs/id_table.c +++ b/lib/sqfs/id_table.c @@ -22,8 +22,11 @@ struct sqfs_id_table_t { size_t max_ids; }; -sqfs_id_table_t *sqfs_id_table_create(void) +sqfs_id_table_t *sqfs_id_table_create(sqfs_u32 flags) { + if (flags != 0) + return NULL; + return calloc(1, sizeof(sqfs_id_table_t)); } |