summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-28 14:50:48 +1000
committerAllan McRae <allan@archlinux.org>2011-06-28 23:28:24 +1000
commitddad400900fbf253f6e247f51ef4aeb9d89d8643 (patch)
tree41ba168a977c3ee2b9f13b86d7d6e2b99b92aaec /src/pacman
parent1059df7486054c621423436b801681775a2596c3 (diff)
Rename pmerrno_t to alpm_errno_t
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/conf.c2
-rw-r--r--src/pacman/remove.c2
-rw-r--r--src/pacman/sync.c6
-rw-r--r--src/pacman/upgrade.c4
-rw-r--r--src/pacman/util.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index d3dbc9da..368e71fa 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -420,7 +420,7 @@ static int _add_mirror(alpm_db_t *db, char *value)
static int setup_libalpm(void)
{
int ret = 0;
- enum _pmerrno_t err;
+ enum _alpm_errno_t err;
alpm_handle_t *handle;
pm_printf(PM_LOG_DEBUG, "setup_libalpm called\n");
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index eab8bdfc..d48b0386 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -102,7 +102,7 @@ int pacman_remove(alpm_list_t *targets)
/* Step 2: prepare the transaction based on its type, targets and flags */
if(alpm_trans_prepare(config->handle, &data) == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to prepare transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 5b06a806..20be450c 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -615,7 +615,7 @@ static int process_pkg(alpm_pkg_t *pkg)
int ret = alpm_add_pkg(config->handle, pkg);
if(ret == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
if(err == PM_ERR_TRANS_DUP_TARGET
|| err == PM_ERR_PKG_IGNORED) {
/* just skip duplicate or ignored targets */
@@ -763,7 +763,7 @@ static int sync_trans(alpm_list_t *targets)
/* Step 2: "compute" the transaction based on targets and flags */
if(alpm_trans_prepare(config->handle, &data) == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to prepare transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
@@ -830,7 +830,7 @@ static int sync_trans(alpm_list_t *targets)
}
if(alpm_trans_commit(config->handle, &data) == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to commit transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c
index 7f6e0986..31536a43 100644
--- a/src/pacman/upgrade.c
+++ b/src/pacman/upgrade.c
@@ -94,7 +94,7 @@ int pacman_upgrade(alpm_list_t *targets)
/* Step 2: "compute" the transaction based on targets and flags */
/* TODO: No, compute nothing. This is stupid. */
if(alpm_trans_prepare(config->handle, &data) == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to prepare transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
@@ -162,7 +162,7 @@ int pacman_upgrade(alpm_list_t *targets)
}
if(alpm_trans_commit(config->handle, &data) == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to commit transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
diff --git a/src/pacman/util.c b/src/pacman/util.c
index a661b2e9..6a93f6df 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -60,7 +60,7 @@ int trans_init(alpm_transflag_t flags)
}
if(ret == -1) {
- enum _pmerrno_t err = alpm_errno(config->handle);
+ enum _alpm_errno_t err = alpm_errno(config->handle);
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to init transaction (%s)\n"),
alpm_strerror(err));
if(err == PM_ERR_HANDLE_LOCK) {