diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-02-21 15:31:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-30 12:53:02 +0000 |
commit | e43ec608749a44a305afec89f46bcb282ab93d10 (patch) | |
tree | f9677a1e6347a0aa98a8ff83911f3d57667e1dfc /src/upgrade.c | |
parent | 0f6475b88466b6e4cd424f9807fa14eab0fafe96 (diff) | |
download | apk-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/upgrade.c')
-rw-r--r-- | src/upgrade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upgrade.c b/src/upgrade.c index eb51457..4db0c00 100644 --- a/src/upgrade.c +++ b/src/upgrade.c @@ -48,7 +48,7 @@ int apk_do_self_upgrade(struct apk_database *db, struct apk_state *state) apk_message("Uprading first to new apk-tools:"); state->print_ok = 0; - r = apk_state_commit(state, db); + r = apk_state_commit(state); apk_state_unref(state); apk_db_close(db); @@ -101,7 +101,7 @@ static int upgrade_main(void *ctx, struct apk_database *db, int argc, char **arg if (i != 0) printf("\n"); - r = apk_state_commit(state, db); + r = apk_state_commit(state); } else apk_state_print_errors(state); err: |