diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-07 20:19:05 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-07 20:40:07 +0200 |
commit | 60064dd0412a149fe00cfc4e2f2361c22656db57 (patch) | |
tree | f4a2aaed857aeca621ee96e46e23858d4025fcf8 /lib/sqfshelper/xattr_reader.c | |
parent | e71c56420a8fc3dc7e36eb059304a362b47a1c15 (diff) |
Remove printing to stderr in libsquashfs with returning error numbers
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/xattr_reader.c')
-rw-r--r-- | lib/sqfshelper/xattr_reader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqfshelper/xattr_reader.c b/lib/sqfshelper/xattr_reader.c index a0dc6f6..376fdb2 100644 --- a/lib/sqfshelper/xattr_reader.c +++ b/lib/sqfshelper/xattr_reader.c @@ -24,12 +24,10 @@ static int restore_kv_pairs(sqfs_xattr_reader_t *xr, fstree_t *fs, int ret; for (i = 0; i < node->xattr->num_attr; ++i) { - key = sqfs_xattr_reader_read_key(xr); - if (key == NULL) + if (sqfs_xattr_reader_read_key(xr, &key)) return -1; - val = sqfs_xattr_reader_read_value(xr, key); - if (val == NULL) + if (sqfs_xattr_reader_read_value(xr, key, &val)) goto fail_key; ret = str_table_get_index(&fs->xattr_keys, |