summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-01-06 00:27:17 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-01-06 00:27:17 +0200
commite39334e44f723b0a1d1036f354c5d8f5d0a12377 (patch)
treeaff3b1638e1ab0fb0122c4c2fc4c8c40b2cafe88 /src/database.c
parente4aae45f960691afdc25ebc9d0b4c38af40e4346 (diff)
downloadapk-tools-e39334e44f723b0a1d1036f354c5d8f5d0a12377.tar.gz
apk-tools-e39334e44f723b0a1d1036f354c5d8f5d0a12377.tar.bz2
apk-tools-e39334e44f723b0a1d1036f354c5d8f5d0a12377.tar.xz
apk-tools-e39334e44f723b0a1d1036f354c5d8f5d0a12377.zip
io: remove unused size parameter from bstream close
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/database.c b/src/database.c
index 1af6b9d..bbf6327 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1164,14 +1164,14 @@ static int apk_db_read_state(struct apk_database *db, int flags)
bs = apk_bstream_from_file(db->root_fd, apk_installed_file);
if (!IS_ERR_OR_NULL(bs)) {
r = apk_db_index_read(db, bs, -1);
- apk_bstream_close(bs, NULL);
+ apk_bstream_close(bs);
if (r != 0) return -1;
}
bs = apk_bstream_from_file(db->root_fd, apk_triggers_file);
if (!IS_ERR_OR_NULL(bs)) {
apk_db_triggers_read(db, bs);
- apk_bstream_close(bs, NULL);
+ apk_bstream_close(bs);
}
}
@@ -1685,7 +1685,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
bs = apk_bstream_from_file(db->cache_fd, "installed");
if (!IS_ERR_OR_NULL(bs)) {
apk_db_index_read(db, bs, -2);
- apk_bstream_close(bs, NULL);
+ apk_bstream_close(bs);
}
}
}
@@ -2182,7 +2182,7 @@ static int load_apkindex(void *sctx, const struct apk_file_info *fi,
bs = apk_bstream_from_istream(is);
if (!IS_ERR_OR_NULL(bs)) {
apk_db_index_read(ctx->db, bs, ctx->repo);
- apk_bstream_close(bs, NULL);
+ apk_bstream_close(bs);
}
}
@@ -2215,7 +2215,7 @@ static int load_index(struct apk_database *db, struct apk_bstream *bs,
bs = apk_bstream_from_istream(apk_bstream_gunzip(bs));
if (!IS_ERR_OR_NULL(bs)) {
apk_db_index_read(db, bs, repo);
- apk_bstream_close(bs, NULL);
+ apk_bstream_close(bs);
}
}
return r;