diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-09-12 13:26:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-09-12 13:26:07 +0000 |
commit | 84b2dbc3a4503e51cd55e759c45ddb8bf0208a39 (patch) | |
tree | d1f86d1bf976c92c14654db929451b31c6c8a436 /usr.sbin | |
parent | 68c05cbf6aa4050527e7446c41a4c4006949276b (diff) |
Remove last two arguments from repo_lookup() since they are unused.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 9cfe4087da7..01f462a74a0 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.77 2020/09/12 10:02:01 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.78 2020/09/12 13:26:06 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -303,8 +303,7 @@ entityq_flush(int fd, struct entityq *q, const struct repo *repo) * Look up a repository, queueing it for discovery if not found. */ static const struct repo * -repo_lookup(int fd, struct repotab *rt, const char *uri, struct entityq *q, - int proc) +repo_lookup(int fd, struct repotab *rt, const char *uri) { const char *host, *mod; size_t hostsz, modsz, i; @@ -555,7 +554,7 @@ queue_add_from_tal(int proc, int rsync, struct entityq *q, /* Look up the repository. */ assert(rtype_resolve(uri) == RTYPE_CER); - repo = repo_lookup(rsync, rt, uri, q, proc); + repo = repo_lookup(rsync, rt, uri); uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1; if (asprintf(&nfile, "%s/%s/%s", repo->host, repo->module, uri) == -1) @@ -583,7 +582,7 @@ queue_add_from_cert(int proc, int rsync, struct entityq *q, /* Look up the repository. */ - repo = repo_lookup(rsync, rt, uri, q, proc); + repo = repo_lookup(rsync, rt, uri); uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1; if (asprintf(&nfile, "%s/%s/%s", repo->host, repo->module, uri) == -1) |