From 7e2d5344d3ae7d0e728115bdb39836e88c73db20 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Mar 2013 11:52:47 +0100 Subject: [PATCH] lib/package_unpack.c: pass correct number of args to xbps_set_cb_state(). --- lib/package_unpack.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index 152acaf1..4a627a58 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -498,15 +498,14 @@ unpack_archive(struct xbps_handle *xhp, if (remove(file) == -1) { xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_FILE_OBSOLETE_FAIL, - errno, pkgver, NULL, + errno, pkgver, "%s: failed to remove obsolete entry `%s': %s", pkgver, file, strerror(errno)); continue; } xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_FILE_OBSOLETE, - 0, pkgver, NULL, - "%s: removed obsolete entry: %s", pkgver, file); + 0, pkgver, "%s: removed obsolete entry: %s", pkgver, file); prop_object_release(obj); }