-/* $OpenBSD: repo.c,v 1.2 2021/04/01 16:50:23 deraadt Exp $ */
+/* $OpenBSD: repo.c,v 1.3 2021/04/02 05:16:29 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
/*
* A ta, rsync or rrdp repository.
* Depending on what is needed the generic repository is backed by
- * a ta, rsync or rrdp reposityry. Multiple repositories can use the
+ * a ta, rsync or rrdp repository. Multiple repositories can use the
* same backend.
*/
struct rrdprepo {
const struct rrdprepo *rrdp;
const struct rsyncrepo *rsync;
const struct tarepo *ta;
- struct entityq queue; /* files waiting for repo */
+ struct entityq queue; /* files waiting for repo */
size_t id; /* identifier */
};
SLIST_HEAD(, repo) repos = SLIST_HEAD_INITIALIZER(repos);
filepath_free(&rr->added);
filepath_free(&rr->deleted);
-
+
free(rr);
}
}
rp->rrdp = rrdp_get(notify);
if (rp->rrdp == NULL)
rp->rsync = rsync_get(uri);
-
+
return rp;
}