summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-09-02 18:08:44 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-09-02 18:08:44 +0000
commit6cdb99ff485f97d00a030bfc837a7bbdbddfc77b (patch)
treee0ba1f8c8fa77dc933c33d713c129296a66243ef /usr.sbin
parenta219c267e13729bbdf39f1e240c6c20bdcf49cca (diff)
rrdp_new() need not return the struct
The only caller does nothing with it. with/ok claudio
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/rrdp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/rpki-client/rrdp.c b/usr.sbin/rpki-client/rrdp.c
index 3114de481a9..e997e06d117 100644
--- a/usr.sbin/rpki-client/rrdp.c
+++ b/usr.sbin/rpki-client/rrdp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rrdp.c,v 1.24 2022/05/15 16:43:35 tb Exp $ */
+/* $OpenBSD: rrdp.c,v 1.25 2022/09/02 18:08:43 tb Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -181,7 +181,7 @@ rrdp_publish_file(struct rrdp *s, struct publish_xml *pxml,
}
}
-static struct rrdp *
+static void
rrdp_new(unsigned int id, char *local, char *notify, char *session_id,
long long serial, char *last_mod)
{
@@ -206,8 +206,6 @@ rrdp_new(unsigned int id, char *local, char *notify, char *session_id,
notify);
TAILQ_INSERT_TAIL(&states, s, entry);
-
- return s;
}
static void
@@ -401,7 +399,7 @@ rrdp_input_handler(int fd)
if (b->fd != -1)
errx(1, "received unexpected fd");
- s = rrdp_new(id, local, notify, session_id, serial, last_mod);
+ rrdp_new(id, local, notify, session_id, serial, last_mod);
break;
case RRDP_HTTP_INI:
if (b->fd == -1)