-/* $OpenBSD: extern.h,v 1.69 2021/10/07 08:30:39 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.70 2021/10/10 21:57:43 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
* An entity (MFT, ROA, certificate, etc.) that needs to be downloaded
* and parsed.
*/
-struct entity {
+struct entity {
enum rtype type; /* type of entity (not RTYPE_EOF) */
char *file; /* local path to file */
int has_pkey; /* whether pkey/sz is specified */
/*
* Statistics collected during run-time.
*/
-struct stats {
+struct stats {
size_t tals; /* total number of locators */
size_t mfts; /* total number of manifests */
size_t mfts_fail; /* failing syntactic parse */
-/* $OpenBSD: main.c,v 1.146 2021/10/05 11:20:46 job Exp $ */
+/* $OpenBSD: main.c,v 1.147 2021/10/10 21:57:43 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
{
int rc, c, st, proc, rsync, http, rrdp, ok,
hangup = 0, fl = SOCK_STREAM | SOCK_CLOEXEC;
- size_t i, id, outsz = 0, talsz = 0;
+ size_t i, id, talsz = 0;
pid_t pid, procpid, rsyncpid, httppid, rrdppid;
int fd[2];
struct pollfd pfd[NPFD];
/* Memory cleanup. */
repo_free();
- for (i = 0; i < outsz; i++)
- roa_free(out[i]);
- free(out);
-
return rc;
usage: