Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorJonathan Conder <jonno.conder@gmail.com>2011-10-29 15:03:24 +1300
committerDan McGee <dan@archlinux.org>2011-11-14 08:54:03 -0600
commita3f9399295e6c94b7f8f8249d4a6b28e63fd2dbb (patch)
tree6d72f08e73177a8f33661387e4381126db4f2dba /lib/libalpm/error.c
parent1de5070bb39e56ee9ce381b0cc40752eaed60783 (diff)
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/error.c')
-rw-r--r--lib/libalpm/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index b3f56819..044dec7c 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -29,12 +29,12 @@
#include "alpm.h"
#include "handle.h"
-enum _alpm_errno_t SYMEXPORT alpm_errno(alpm_handle_t *handle)
+alpm_errno_t SYMEXPORT alpm_errno(alpm_handle_t *handle)
{
return handle->pm_errno;
}
-const char SYMEXPORT *alpm_strerror(enum _alpm_errno_t err)
+const char SYMEXPORT *alpm_strerror(alpm_errno_t err)
{
switch(err) {
/* System */