From: tb Date: Fri, 2 Sep 2022 18:08:43 +0000 (+0000) Subject: rrdp_new() need not return the struct X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=98efa06845abd59600d1210604c42b5171e323d9;p=openbsd rrdp_new() need not return the struct The only caller does nothing with it. with/ok claudio --- 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 * Copyright (c) 2021 Claudio Jeker @@ -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)