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
This commit is contained in:
parent
9407408915
commit
db6b32867d
@ -1591,7 +1591,7 @@ __tcp_run_hpts(struct tcp_hpts_entry *hpts)
|
||||
}
|
||||
|
||||
static struct tcp_hpts_entry *
|
||||
tcp_choose_hpts_to_run()
|
||||
tcp_choose_hpts_to_run(void)
|
||||
{
|
||||
int i, oldest_idx, start, end;
|
||||
uint32_t cts, time_since_ran, calc;
|
||||
|
Loading…
Reference in New Issue
Block a user