mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
removed unuseful error codes
This commit is contained in:
parent
365e440e80
commit
d42c6bdc49
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user