From nobody Tue Feb 21 14:03:12 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 4PLgww4Mv6z3shF2; Tue, 21 Feb 2023 14:03:12 +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 4PLgww3tXwz4Nmm; Tue, 21 Feb 2023 14:03:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676988192; 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=zEQvV6Dg3qM5NqIjgJzyHj1lxziDSUaM+OBOwMKo+f0=; b=bxhBcW8Az4zVie8xq0u7m43R/lDSXqbmWoSIlEvOX2OHwQXsd+1UGwhh3XnDgN8j3JhNFb l8yDaOb74g1q1wQ/MV1McWwihX1yXofPHKBHoOvGGTT4NoxL5Qvwl250tRsmJ40GjEoIA8 OL864LXYo7v4VbkslXYmjBOAYZkBpJ5l0RLqWMmPgfLeZzL4zAuFzJzFv3vlMvtfKguduk H9omOwDyTS4ez5VsS63iU8dKFTftQCnpugDCM8Kic+uQjQ/iz9Lh/W5A0nojLkEORH5xwd mnEmFORuO0ACIh2GmdPwfu/tTEoDg8E571ru7osDA3UZBmHKZ9dyb6rvAnYjwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676988192; 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=zEQvV6Dg3qM5NqIjgJzyHj1lxziDSUaM+OBOwMKo+f0=; b=iv0na7z4ZWJqqsHwMQ5QzPCExJ9E5MOpwt0Duw+Y8F5jvmW5sBo8UPVMyBHFoSB1rEeiDD dJYD8jxAh/e4HFxCYQGZXmTPO1nHs/n4SR24kI+I5Z9ss9LtGixcIm7d/yZ4oMA6Z4mdRW al87fCzW62rrRmTU2IAVE0o42gv5wFC8DgE3/khkOqgRzQILJLdiGEH+yXa41CDu9a1/hl Xrg2dq061TGbImInBdgYagIGCut0o5AvxAjN5PuJitx3+W0Da3AgVbpDMZOE704aIHHAbF +nP6fusyKuCVjzslvdgBc++uN9BQ8hSd/OXdYuzPWITB/vc2CA0o0mRRl12Nug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676988192; a=rsa-sha256; cv=none; b=NEUbevXFmS6e8PEBZhmBcNx66yAxEKJNbAc5pqkpZZj1Xarqw0S6xmeYNCRfMs8MDFGiLt B7Whwep4oVQQhSv9Sjj9ViOMDHbkyi0IYzPgGX+I0y+NO1vGTkJ8EBI0q2cT9RI/MxB1NJ ctPqkqCXJqIyLqXDNXAmkxqT99Y5IakmD0Su74eqUqjLa4coX3C6kMPZVtoZMPnXp+KxLk 3SuB00ajvP7x75WZCKp9lMk2OsNhZhET7HZO/2WIqgPSMMOhHs9rtq35DlkJOB8gfI6sZo 9Mq80Nd7pwb2CtfP38+tJxwRKSQaR3YnRZvbmaTTP/5O9U5dZyEJu3FUWeuhMQ== 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 4PLgww2w6pzNj3; Tue, 21 Feb 2023 14:03:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31LE3Cdq022264; Tue, 21 Feb 2023 14:03:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31LE3CIa022263; Tue, 21 Feb 2023 14:03:12 GMT (envelope-from git) Date: Tue, 21 Feb 2023 14:03:12 GMT Message-Id: <202302211403.31LE3CIa022263@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 836e4b371b6e - main - kern/sysv_ipc.c: use ANSI C function definition 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 836e4b371b6eacc8a7e14cdf30fbced59c343455 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=836e4b371b6eacc8a7e14cdf30fbced59c343455 commit 836e4b371b6eacc8a7e14cdf30fbced59c343455 Author: Konstantin Belousov AuthorDate: 2023-02-21 14:00:22 +0000 Commit: Konstantin Belousov CommitDate: 2023-02-21 14:02:46 +0000 kern/sysv_ipc.c: use ANSI C function definition Also remove pointless return's. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/sysv_ipc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c index 4a7d79ad23b3..071253a9f59d 100644 --- a/sys/kern/sysv_ipc.c +++ b/sys/kern/sysv_ipc.c @@ -56,23 +56,18 @@ void (*shmexit_hook)(struct vmspace *) = NULL; /* called from kern_fork.c */ void -shmfork(p1, p2) - struct proc *p1, *p2; +shmfork(struct proc *p1, struct proc *p2) { - if (shmfork_hook != NULL) shmfork_hook(p1, p2); - return; } /* called from kern_exit.c */ void shmexit(struct vmspace *vm) { - if (shmexit_hook != NULL) shmexit_hook(vm); - return; } #endif