summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-02-21 15:31:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-30 12:53:02 +0000
commite43ec608749a44a305afec89f46bcb282ab93d10 (patch)
treef9677a1e6347a0aa98a8ff83911f3d57667e1dfc /src/state.c
parent0f6475b88466b6e4cd424f9807fa14eab0fafe96 (diff)
downloadapk-tools-e43ec608749a44a305afec89f46bcb282ab93d10.tar.gz
apk-tools-e43ec608749a44a305afec89f46bcb282ab93d10.tar.bz2
apk-tools-e43ec608749a44a305afec89f46bcb282ab93d10.tar.xz
apk-tools-e43ec608749a44a305afec89f46bcb282ab93d10.zip
state: use db in own struc when committing
The db parameter to apk_state_commit is not needed so we remove it.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index fef1cbb..d63e1bf 100644
--- a/src/state.c
+++ b/src/state.c
@@ -937,11 +937,11 @@ void apk_state_print_errors(struct apk_state *state)
printf("\n");
}
-int apk_state_commit(struct apk_state *state,
- struct apk_database *db)
+int apk_state_commit(struct apk_state *state)
{
struct progress prog;
struct apk_change *change;
+ struct apk_database *db = state->db;
int n = 0, r = 0, size_diff = 0, toplevel = FALSE, deleteonly = TRUE;
/* Count what needs to be done */