diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-10 11:24:51 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-10 11:25:57 +0200 |
commit | 49c2c4a8c8a8eb32a7d5fdbf4b1eba24bb23efe7 (patch) | |
tree | f6b3b9c5222edf76137a2a227919ca98614d41e1 /lib/sqfshelper | |
parent | 5367faefd2490e09abed41f655c3db55d36752ad (diff) |
API cleanup: eliminate boolean arguments
Replace them with flag fields which can be extended in the future
without breaking the ABI.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper')
-rw-r--r-- | lib/sqfshelper/serialize_fstree.c | 5 | ||||
-rw-r--r-- | lib/sqfshelper/write_xattr.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/sqfshelper/serialize_fstree.c b/lib/sqfshelper/serialize_fstree.c index 1953e8d..78f7d13 100644 --- a/lib/sqfshelper/serialize_fstree.c +++ b/lib/sqfshelper/serialize_fstree.c @@ -52,11 +52,12 @@ int sqfs_serialize_fstree(sqfs_file_t *file, sqfs_super_t *super, fstree_t *fs, int ret = -1; size_t i; - im = sqfs_meta_writer_create(file, cmp, false); + im = sqfs_meta_writer_create(file, cmp, 0); if (im == NULL) return -1; - dm = sqfs_meta_writer_create(file, cmp, true); + dm = sqfs_meta_writer_create(file, cmp, + SQFS_META_WRITER_KEEP_IN_MEMORY); if (dm == NULL) goto out_im; diff --git a/lib/sqfshelper/write_xattr.c b/lib/sqfshelper/write_xattr.c index 8103e29..8faa9ff 100644 --- a/lib/sqfshelper/write_xattr.c +++ b/lib/sqfshelper/write_xattr.c @@ -185,7 +185,7 @@ int write_xattr(sqfs_file_t *file, fstree_t *fs, sqfs_super_t *super, if (ool_locations == NULL) return -1; - mw = sqfs_meta_writer_create(file, cmp, false); + mw = sqfs_meta_writer_create(file, cmp, 0); if (mw == NULL) goto fail_ool; |