git: a0c55bac79ef - main - Adjust dtmalloc_unload() definition to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 19 Jul 2022 19:13:43 UTC
The branch main has been updated by dim:

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

commit a0c55bac79ef684db5f3645fdc1e0fd8da827985
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-19 18:24:41 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-19 18:37:08 +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
---
 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 ae21054315dd..cc6d55eb73dc 100644
--- a/sys/cddl/dev/dtmalloc/dtmalloc.c
+++ b/sys/cddl/dev/dtmalloc/dtmalloc.c
@@ -174,7 +174,7 @@ dtmalloc_load(void *dummy)
 
 
 static int
-dtmalloc_unload()
+dtmalloc_unload(void)
 {
 	int error = 0;