From 86e5c9c242380957c253971ce638deddd54d5b9e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 7 Oct 2019 16:24:38 +0200 Subject: 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 --- lib/sqfs/dir_writer.c | 2 +- lib/sqfs/io_file.c | 2 +- lib/sqfs/meta_writer.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c index 5ce29b6..ff5faa7 100644 --- a/lib/sqfs/dir_writer.c +++ b/lib/sqfs/dir_writer.c @@ -105,7 +105,7 @@ void sqfs_dir_writer_destroy(sqfs_dir_writer_t *writer) free(writer); } -int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u16 flags) +int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u32 flags) { sqfs_u32 offset; sqfs_u64 block; diff --git a/lib/sqfs/io_file.c b/lib/sqfs/io_file.c index b07ae24..f93af4d 100644 --- a/lib/sqfs/io_file.c +++ b/lib/sqfs/io_file.c @@ -107,7 +107,7 @@ static int stdio_truncate(sqfs_file_t *base, sqfs_u64 size) } -sqfs_file_t *sqfs_open_file(const char *filename, int flags) +sqfs_file_t *sqfs_open_file(const char *filename, sqfs_u32 flags) { sqfs_file_stdio_t *file; int open_mode, temp; diff --git a/lib/sqfs/meta_writer.c b/lib/sqfs/meta_writer.c index 5db4fe7..ee92b3b 100644 --- a/lib/sqfs/meta_writer.c +++ b/lib/sqfs/meta_writer.c @@ -41,7 +41,7 @@ struct sqfs_meta_writer_t { /* The raw data chunk that data is appended to */ sqfs_u8 data[SQFS_META_BLOCK_SIZE]; - int flags; + sqfs_u32 flags; meta_block_t *list; meta_block_t *list_end; }; @@ -56,7 +56,7 @@ static int write_block(sqfs_file_t *file, meta_block_t *outblk) sqfs_meta_writer_t *sqfs_meta_writer_create(sqfs_file_t *file, sqfs_compressor_t *cmp, - int flags) + sqfs_u32 flags) { sqfs_meta_writer_t *m; -- cgit v1.2.3