From e43ec608749a44a305afec89f46bcb282ab93d10 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 21 Feb 2011 15:31:39 +0000 Subject: state: use db in own struc when committing The db parameter to apk_state_commit is not needed so we remove it. --- src/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.c') 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 */ -- cgit v1.2.3-60-g2f50