summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.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 /lib/libalpm/sync.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 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 52049a8c..3de5c079 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -748,7 +748,7 @@ static int apply_deltas(alpm_handle_t *handle)
* @return 1 if file was removed, 0 otherwise
*/
static int prompt_to_delete(alpm_handle_t *handle, const char *filepath,
- enum _alpm_errno_t reason)
+ alpm_errno_t reason)
{
int doremove = 0;
QUESTION(handle, ALPM_QUESTION_CORRUPTED_PKG, (char *)filepath,
@@ -965,7 +965,7 @@ static int check_validity(alpm_handle_t *handle,
char *path;
alpm_siglist_t *siglist;
alpm_siglevel_t level;
- enum _alpm_errno_t error;
+ alpm_errno_t error;
};
size_t current = 0, current_bytes = 0;
alpm_list_t *i, *errors = NULL;