diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-20 14:21:19 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-20 14:21:19 +0000 |
commit | 1b7b6e47a1af43af319b5bf758e28cecc2ba5ca1 (patch) | |
tree | 25db28822d0df74df92e556eab7966c326b66e63 /lib | |
parent | 950839b557c3d65443010f26e42f328804b11ef4 (diff) | |
download | pacman-1b7b6e47a1af43af319b5bf758e28cecc2ba5ca1.tar.xz |
replaced rewinddir() calls by db_rewind()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 7768b8a5..68a83b0d 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -212,7 +212,7 @@ pmpkg_t *db_scan(pmdb_t *db, char *target, unsigned int inforeq) if(target != NULL) { /* search for a specific package (by name only) */ - rewinddir(db->dir); + db_rewind(db); while(!found && (ent = readdir(db->dir)) != NULL) { if(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { continue; @@ -635,7 +635,7 @@ PMList *db_find_conflicts(pmdb_t *db, PMList *targets, char *root) * pmpkg_t *info = NULL; char *dbstr = NULL; - rewinddir(db->dir); + db_rewind(db); while((info = db_scan(db, NULL, INFRQ_DESC | INFRQ_FILES)) != NULL) { for(i = info->files; i; i = i->next) { if(i->data == NULL) continue; |