From nobody Mon Nov 06 19:07:33 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SPLT14Kp0z4yjFF; Mon, 6 Nov 2023 19:07:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPLT13T0Vz4fHJ; Mon, 6 Nov 2023 19:07:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699297653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UbJ6TVro53MDsz3O+Ge9RfmzlFx9rMWTeDjPFDWrbTo=; b=Dzu33N+Bjs0QJEN7PfuPdfNQbg5+dee9++Ca7aKYBIoX1r8IAX+GELOJVGBAmNOCtVKpvZ w0ugeh+P+aUZUOrXB6JoJEEhqCD7b2+r6zFylAlWAv9yvihzDUNfJWU+svwimq0XF2yxwU YqlPLPBVltzAJhgYVHKV+9igPluqZ4F9Tw1ocJRfzA05XQgOJsKSHEH9jMQDViT9DrxNWY lwEXQKg1Y1wWZ1labiDGctVv9IkIIJqt9zjmoR6Ef+c6CT6D8fSjlEiY8oZTGSE215+MiT MSbR0Ix02IJFS86NR5Ig3CKC9clPFTHt0P6c+HiWt4LQZeFp4Mlz3C2tTvf20g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699297653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UbJ6TVro53MDsz3O+Ge9RfmzlFx9rMWTeDjPFDWrbTo=; b=KLeeTv3NN0UWHZCYXUXGBqP4dU+VZnGkLrCF8kyDmQGffEympL71BNivsQ+Ojl1WMDCaV1 B4mI6oqm9N/9hlin4wrsA0gA+zY+F9T/vO5n+UPOvjdZfcOBpveVMa1sgYraOWBBRuaebo A0y2X5jRd8Z87SfxANETS2kFrGADNUU5ZMV1yIUv8Lj2NT12YqshCV4+YNYQVJve9jYdHN ncFW1Uf1SpVFmO20HMDd+7deNp7NVWtRVZrng4D7Wid0rnOu/OaiF/oAaSh3ez/vn7324/ dFLOVEXGdLLrOShUkZUyapx+l+RZmxiGynOsRmNblA++5i8AeJmTRiyS9OSqIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699297653; a=rsa-sha256; cv=none; b=nUlXLIQ0MRPNei7qYj0PxZx2UqLKv6Oeic3/K8xofE57vLq6ZuuxJlVExh5UIgKYEQmUGp sGEpiwxk9QMPG+7FXDArJJuKPgSZ+PTR8NxrAeHponSyvOId3oHqEocIaT2JVBJx3/m5Ga cOB0/xy4WEL9JNIGc7/z29UH5BbOv/D/hiC/t/um+eyR1423nD+l+jvrT1ilq+R820nH/Y ff7+RtCG6E5TVUiov+b7+3ccmjt0edbl+U3EbZmzJnWpT3+31bVoTXaBJoazIf9SmIINoN p/mVjJwcaLBcNKhD8o7cJnC7XqCZkI8UveaAe72716TEtFZqW4UzbfdXBsbJfw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SPLT1254Qz45n; Mon, 6 Nov 2023 19:07:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A6J7Xca094327; Mon, 6 Nov 2023 19:07:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A6J7XH6094324; Mon, 6 Nov 2023 19:07:33 GMT (envelope-from git) Date: Mon, 6 Nov 2023 19:07:33 GMT Message-Id: <202311061907.3A6J7XH6094324@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: b5ebd8bb4e90 - main - ypserv: Remove return statement at the end of void functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5ebd8bb4e90b810c834aabb78c87054ab84db8e Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=b5ebd8bb4e90b810c834aabb78c87054ab84db8e commit b5ebd8bb4e90b810c834aabb78c87054ab84db8e Author: Elyes Haouas AuthorDate: 2023-11-03 17:46:16 +0000 Commit: Mitchell Horne CommitDate: 2023-11-06 19:07:10 +0000 ypserv: Remove return statement at the end of void functions Signed-off-by: Elyes Haouas --- usr.sbin/ypserv/yp_dblookup.c | 6 ------ usr.sbin/ypserv/yp_dnslookup.c | 6 ------ usr.sbin/ypserv/yp_main.c | 1 - usr.sbin/ypserv/yp_server.c | 2 -- 4 files changed, 15 deletions(-) diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c index ee3a4c2e9d98..c0aefb048cb9 100644 --- a/usr.sbin/ypserv/yp_dblookup.c +++ b/usr.sbin/ypserv/yp_dblookup.c @@ -91,7 +91,6 @@ void yp_init_dbs(void) { TAILQ_INIT(&qhead); - return; } /* @@ -153,8 +152,6 @@ yp_free_qent(struct circleq_entry *q) */ free(q); q = NULL; - - return; } /* @@ -171,8 +168,6 @@ yp_flush(void) TAILQ_REMOVE(&qhead, qptr, links); yp_free_qent(qptr); numdbs--; - - return; } /* @@ -190,7 +185,6 @@ yp_flush_all(void) } numdbs = 0; - return; } static char *inter_string = "YP_INTERDOMAIN"; diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c index b1dc712c35ff..699c4d7e8018 100644 --- a/usr.sbin/ypserv/yp_dnslookup.c +++ b/usr.sbin/ypserv/yp_dnslookup.c @@ -306,8 +306,6 @@ yp_send_dns_reply(struct circleq_dnsentry *q, char *buf) if (q->prot_type == SOCK_DGRAM) svcudp_set_xid(q->xprt, xid); q->xprt->xp_raddr = client_addr; - - return; } /* @@ -334,8 +332,6 @@ yp_prune_dnsq(void) if (pending < 0) pending = 0; - - return; } /* @@ -403,8 +399,6 @@ yp_run_dnsq(void) /* Decrement TTLs on other entries while we're here. */ yp_prune_dnsq(); - - return; } /* diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c index dac006d4bc28..d326603a9229 100644 --- a/usr.sbin/ypserv/yp_main.c +++ b/usr.sbin/ypserv/yp_main.c @@ -209,7 +209,6 @@ reaper(int sig) exit(0); } errno = saved_errno; - return; } static void diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 8bfff7355a16..62e45e35cbe1 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -305,7 +305,6 @@ ypxfr_callback(ypxfrstat rval, struct sockaddr_in *addr, unsigned int transid, } clnt_destroy(clnt); - return; } #define YPXFR_RETURN(CODE) \ @@ -673,7 +672,6 @@ static void yp_maplist_free(struct ypmaplist *yp_maplist) free(yp_maplist); yp_maplist = next; } - return; } static struct ypmaplist *