git: 667ea86715cf - stable/13 - Adjust function definition in tcp_hpts.c to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:10 UTC
The branch stable/13 has been updated by dim:

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

commit 667ea86715cf27622281e36e9e81f42bebb63a76
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:05:34 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:13:31 +0000

    Adjust function definition in tcp_hpts.c to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/netinet/tcp_hpts.c:1594:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        tcp_choose_hpts_to_run()
                              ^
                               void
    
    This is because tcp_choose_hpts_to_run() 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 db6b32867d6ed996f8a9aad41ca6ffbaa2088e59)
---
 sys/netinet/tcp_hpts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c
index 8a7ae29dbcaf..a744153d338d 100644
--- a/sys/netinet/tcp_hpts.c
+++ b/sys/netinet/tcp_hpts.c
@@ -1913,7 +1913,7 @@ out_with_mtx:
 }
 
 static struct tcp_hpts_entry *
-tcp_choose_hpts_to_run()
+tcp_choose_hpts_to_run(void)
 {
 	int i, oldest_idx;
 	uint32_t cts, time_since_ran, calc;