git: 0eb3522fd22b - stable/13 - Adjust dtmalloc_unload() definition to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sat, 23 Jul 2022 08:58:11 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=0eb3522fd22bb321e003a8b485e68141c3a9434a

commit 0eb3522fd22bb321e003a8b485e68141c3a9434a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-19 18:24:41 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-23 08:56:43 +0000

    Adjust dtmalloc_unload() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warnings is produced:
    
        sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        dtmalloc_unload()
                       ^
                        void
    
    This is because dtmalloc_unload() is declared with a (void) argument
    list, but defined with an empty argument list. Make the definition match
    the declaration.
    
    MFC after:      3 days
    
    (cherry picked from commit a0c55bac79ef684db5f3645fdc1e0fd8da827985)
---
 sys/cddl/dev/dtmalloc/dtmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/dtmalloc/dtmalloc.c b/sys/cddl/dev/dtmalloc/dtmalloc.c
index 3f584dc0860e..3f7cafe07893 100644
--- a/sys/cddl/dev/dtmalloc/dtmalloc.c
+++ b/sys/cddl/dev/dtmalloc/dtmalloc.c
@@ -186,7 +186,7 @@ dtmalloc_load(void *dummy)
 
 
 static int
-dtmalloc_unload()
+dtmalloc_unload(void)
 {
 	int error = 0;