summaryrefslogtreecommitdiff
path: root/include/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 16:24:38 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 16:25:38 +0200
commit86e5c9c242380957c253971ce638deddd54d5b9e (patch)
tree0b7643363a295d04966995ea367a9308fb1ae7a4 /include/sqfs
parente21bf0b60c1b9d67fe7553105b6440c3fce7c0bb (diff)
Cleanup: consistent, fixed size data types for generic flag fields
Instead of using int or unsigned int for generic function flag arguments, consistently use an unsigned, fixed size type. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs')
-rw-r--r--include/sqfs/dir_reader.h2
-rw-r--r--include/sqfs/dir_writer.h2
-rw-r--r--include/sqfs/io.h2
-rw-r--r--include/sqfs/meta_writer.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/sqfs/dir_reader.h b/include/sqfs/dir_reader.h
index ec84d98..389da6b 100644
--- a/include/sqfs/dir_reader.h
+++ b/include/sqfs/dir_reader.h
@@ -308,7 +308,7 @@ SQFS_API int sqfs_dir_reader_find_by_path(sqfs_dir_reader_t *rd,
SQFS_API int sqfs_dir_reader_get_full_hierarchy(sqfs_dir_reader_t *rd,
const sqfs_id_table_t *idtbl,
const char *path,
- unsigned int flags,
+ sqfs_u32 flags,
sqfs_tree_node_t **out);
/**
diff --git a/include/sqfs/dir_writer.h b/include/sqfs/dir_writer.h
index bb09a86..81a651c 100644
--- a/include/sqfs/dir_writer.h
+++ b/include/sqfs/dir_writer.h
@@ -95,7 +95,7 @@ SQFS_API void sqfs_dir_writer_destroy(sqfs_dir_writer_t *writer);
*
* @return Zero on success, a @ref E_SQFS_ERROR value on failure.
*/
-SQFS_API int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u16 flags);
+SQFS_API int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u32 flags);
/**
* @brief Add add a directory entry.
diff --git a/include/sqfs/io.h b/include/sqfs/io.h
index 866389b..1108a61 100644
--- a/include/sqfs/io.h
+++ b/include/sqfs/io.h
@@ -140,7 +140,7 @@ extern "C" {
* @return A pointer to a file object on success, NULL on allocation failure,
* failure to open the file or if an unknown flag was set.
*/
-SQFS_API sqfs_file_t *sqfs_open_file(const char *filename, int flags);
+SQFS_API sqfs_file_t *sqfs_open_file(const char *filename, sqfs_u32 flags);
#ifdef __cplusplus
}
diff --git a/include/sqfs/meta_writer.h b/include/sqfs/meta_writer.h
index 21842fb..cf8e16c 100644
--- a/include/sqfs/meta_writer.h
+++ b/include/sqfs/meta_writer.h
@@ -85,7 +85,7 @@ extern "C" {
*/
SQFS_API sqfs_meta_writer_t *sqfs_meta_writer_create(sqfs_file_t *file,
sqfs_compressor_t *cmp,
- int flags);
+ sqfs_u32 flags);
/**
* @brief Destroy a meta data writer and free all memory used by it.