git: 78cfed2de70d - main - Adjust function definitions in sysv_msg.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 18:00:41 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=78cfed2de70d023acb452c06dbd1ffd8341f4608

commit 78cfed2de70d023acb452c06dbd1ffd8341f4608
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 17:46:15 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-26 17:59:57 +0000

    Adjust function definitions in sysv_msg.c to avoid clang 15 warnings
    
    With clang 15, the following -Werror warnings are produced:
    
        sys/kern/sysv_msg.c:213:8: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        msginit()
               ^
                void
        sys/kern/sysv_msg.c:316:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        msgunload()
                 ^
                  void
    
    This is because msginit() and msgunload() are declared with (void)
    argument lists, but defined with empty argument lists. Make the
    definitions match the declarations.
    
    MFC after:      3 days
---
 sys/kern/sysv_msg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c
index 917c89315401..afb0e34a5a44 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -210,7 +210,7 @@ static struct syscall_helper_data msg32_syscalls[] = {
 #endif
 
 static int
-msginit()
+msginit(void)
 {
 	struct prison *pr;
 	void **rsv;
@@ -313,7 +313,7 @@ msginit()
 }
 
 static int
-msgunload()
+msgunload(void)
 {
 	struct msqid_kernel *msqkptr;
 	int msqid;