diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-13 21:55:39 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-13 21:55:39 +0100 |
commit | d42c6bdc492ba985aba5e057326b7dbb4f859772 (patch) | |
tree | 06574350d7182d64a1a10e412066d31e54ed8f8b | |
parent | 365e440e802d4c59cc61419a4fca309c435f281e (diff) | |
download | pacman-d42c6bdc492ba985aba5e057326b7dbb4f859772.tar.gz pacman-d42c6bdc492ba985aba5e057326b7dbb4f859772.tar.xz |
removed unuseful error codes
-rw-r--r-- | lib/libalpm/alpm.h | 5 | ||||
-rw-r--r-- | lib/libalpm/error.c | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index f0b92996..a237fe36 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -310,8 +310,7 @@ char *alpm_get_md5sum(char *name); */ extern enum __pmerrno_t { - PM_ERR_NOERROR = 1, - PM_ERR_MEMORY, + PM_ERR_MEMORY = 1, PM_ERR_SYSTEM, PM_ERR_BADPERMS, PM_ERR_NOT_A_FILE, @@ -328,8 +327,6 @@ extern enum __pmerrno_t { PM_ERR_DB_NOT_FOUND, PM_ERR_DB_WRITE, PM_ERR_DB_UPTODATE, - /* Cache */ - PM_ERR_CACHE_NULL, /* Configuration */ PM_ERR_OPT_LOGFILE, PM_ERR_OPT_DBPATH, diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index af79c64f..609e598f 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -57,9 +57,6 @@ char *alpm_strerror(int err) return "could not update database"; case PM_ERR_DB_UPTODATE: return "database is up to date"; - /* Cache */ - case PM_ERR_CACHE_NULL: - return "cache not initialized"; /* Configuration */ case PM_ERR_OPT_LOGFILE: case PM_ERR_OPT_DBPATH: |