summaryrefslogtreecommitdiffstats
path: root/src/pacman/remove.c
diff options
context:
space:
mode:
authorJonathan Conder <jonno.conder@gmail.com>2011-10-29 04:03:24 +0200
committerDan McGee <dan@archlinux.org>2011-11-14 15:54:03 +0100
commita3f9399295e6c94b7f8f8249d4a6b28e63fd2dbb (patch)
tree6d72f08e73177a8f33661387e4381126db4f2dba /src/pacman/remove.c
parent1de5070bb39e56ee9ce381b0cc40752eaed60783 (diff)
downloadpacman-a3f9399295e6c94b7f8f8249d4a6b28e63fd2dbb.tar.gz
pacman-a3f9399295e6c94b7f8f8249d4a6b28e63fd2dbb.tar.xz
create a typedef for enum _alpm_errno_t
This is consistent with the other enums and structs, and should be slightly more readable. Signed-off-by: Jonathan Conder <jonno.conder@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r--src/pacman/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 73a583c9..f56c1ec1 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -110,7 +110,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 _alpm_errno_t err = alpm_errno(config->handle);
+ alpm_errno_t err = alpm_errno(config->handle);
pm_printf(ALPM_LOG_ERROR, _("failed to prepare transaction (%s)\n"),
alpm_strerror(err));
switch(err) {