diff options
author | Guillem Jover <guillem@debian.org> | 2012-03-31 05:49:02 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2012-03-31 21:43:30 +0200 |
commit | 91b4afa50787ee56bb487ea82c03685bf6b0cf98 (patch) | |
tree | 9c8cb413a07e0363ef859dceb457fe7e31281a89 /src/divertcmd.c | |
parent | c489aa1327029b29e2fcb200f0ee977e2d665056 (diff) | |
download | dpkg-91b4afa50787ee56bb487ea82c03685bf6b0cf98.tar.gz |
Rename iterfiles*() functions to files_db_iter_*()
Diffstat (limited to 'src/divertcmd.c')
-rw-r--r-- | src/divertcmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/divertcmd.c b/src/divertcmd.c index cbd19d77f..69602b5fc 100644 --- a/src/divertcmd.c +++ b/src/divertcmd.c @@ -351,8 +351,8 @@ divertdb_write(void) file = atomic_file_new(dbname, aff_backup); atomic_file_open(file); - iter = iterfilestart(); - while ((namenode = iterfilenext(iter))) { + iter = files_db_iter_new(); + while ((namenode = files_db_iter_next(iter))) { struct diversion *d = namenode->divert; if (d == NULL || d->useinstead == NULL) @@ -363,7 +363,7 @@ divertdb_write(void) d->useinstead->name, diversion_pkg_name(d)); } - iterfileend(iter); + files_db_iter_free(iter); atomic_file_sync(file); atomic_file_close(file); @@ -594,8 +594,8 @@ diversion_list(const char *const *argv) if (glob_list == NULL) glob_list_prepend(&glob_list, m_strdup("*")); - iter = iterfilestart(); - while ((namenode = iterfilenext(iter))) { + iter = files_db_iter_new(); + while ((namenode = files_db_iter_next(iter))) { struct glob_node *g; struct diversion *contest = namenode->divert; struct diversion *altname; @@ -617,7 +617,7 @@ diversion_list(const char *const *argv) } } } - iterfileend(iter); + files_db_iter_free(iter); glob_list_free(glob_list); |