diff options
author | Dan McGee <dan@archlinux.org> | 2007-02-21 09:34:36 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-02-21 09:34:36 +0100 |
commit | a5f630fda6ef984b39c867da28c3eeef8abbb30d (patch) | |
tree | 550a0c096fda4bceccf2ff70c3b156d2ca4f492c /lib/libalpm/be_files.c | |
parent | 829ac8369b49219c988bb7553a3093615ddcb76d (diff) | |
download | pacman-a5f630fda6ef984b39c867da28c3eeef8abbb30d.tar.gz pacman-a5f630fda6ef984b39c867da28c3eeef8abbb30d.tar.xz |
* Fixed inconsistency of args- _alpm_db_read, _alpm_db_write.
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r-- | lib/libalpm/be_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index dad81972..faa1f300 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -183,7 +183,7 @@ pmpkg_t *_alpm_db_scan(pmdb_t *db, char *target, pmdbinfrq_t inforeq) _alpm_log(PM_LOG_ERROR, _("invalid name for dabatase entry '%s'"), ent->d_name); return(NULL); } - if(_alpm_db_read(db, inforeq, pkg) == -1) { + if(_alpm_db_read(db, pkg, inforeq) == -1) { /* TODO removed corrupt entry from the FS here */ FREEPKG(pkg); } @@ -193,7 +193,7 @@ pmpkg_t *_alpm_db_scan(pmdb_t *db, char *target, pmdbinfrq_t inforeq) return(pkg); } -int _alpm_db_read(pmdb_t *db, unsigned int inforeq, pmpkg_t *info) +int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) { FILE *fp = NULL; struct stat buf; @@ -471,7 +471,7 @@ error: return(-1); } -int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) +int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) { FILE *fp = NULL; char path[PATH_MAX]; |