From 2e63d6aa7fcdfd89f02758f02f5799a291405b40 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 22 Jan 2015 00:29:53 -0500 Subject: make pm_errno thread-local Signed-off-by: Andrew Gregory --- lib/libalpm/deps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalpm/deps.c') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 96f91739..3aead3a9 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -759,9 +759,9 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, } if(ignored) { /* resolvedeps will override these */ - handle->pm_errno = ALPM_ERR_PKG_IGNORED; + _alpm_set_errno(handle, ALPM_ERR_PKG_IGNORED); } else { - handle->pm_errno = ALPM_ERR_PKG_NOT_FOUND; + _alpm_set_errno(handle, ALPM_ERR_PKG_NOT_FOUND); } return NULL; } @@ -863,7 +863,7 @@ int _alpm_resolvedeps(alpm_handle_t *handle, alpm_list_t *localpkgs, } else if(resolvedep(handle, missdep, (targ = alpm_list_add(NULL, handle->db_local)), rem, 0)) { alpm_depmissing_free(miss); } else { - handle->pm_errno = ALPM_ERR_UNSATISFIED_DEPS; + _alpm_set_errno(handle, ALPM_ERR_UNSATISFIED_DEPS); char *missdepstring = alpm_dep_compute_string(missdep); _alpm_log(handle, ALPM_LOG_WARNING, _("cannot resolve \"%s\", a dependency of \"%s\"\n"), -- cgit v1.2.3-24-g4f1b