summaryrefslogtreecommitdiffstats
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list.c b/src/list.c
index f1763eb..8db5906 100644
--- a/src/list.c
+++ b/src/list.c
@@ -111,7 +111,7 @@ static int sort_entry_cmp(const void *_a, const void *_b) {
return 1;
return strncmp(a->name.path, b->name.path, PATH_MAX);
-};
+}
int list(struct syrep_db_context *c) {
int r = -1, ret;
@@ -182,7 +182,7 @@ int list(struct syrep_db_context *c) {
DB_BTREE_STAT *statp;
int ret;
- if ((ret = c->db_id_meta->stat(c->db_id_meta, &statp, 0)) != 0)
+ if ((ret = c->db_id_meta->stat(c->db_id_meta, NULL, &statp, DB_FAST_STAT)) != 0)
break;
m_sort_array = statp->bt_ndata;