-/* $OpenBSD: main.c,v 1.218 2022/09/02 21:56:45 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.219 2022/09/03 09:22:25 claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
* These are always relative to the directory in which "mft" sits.
*/
static void
-queue_add_from_mft(const struct mft *mft, struct repo *rp)
+queue_add_from_mft(const struct mft *mft)
{
size_t i;
+ struct repo *rp;
const struct mftfile *f;
char *nfile, *npath = NULL;
+ rp = repo_byid(mft->repoid);
for (i = 0; i < mft->filesz; i++) {
f = &mft->files[i];
}
mft = mft_read(b);
if (!mft->stale)
- queue_add_from_mft(mft, repo_byid(mft->repoid));
+ queue_add_from_mft(mft);
else
st->mfts_stale++;
mft_free(mft);