mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Querying the default CC algo is more common than setting it and the function
is small, so there is no good reason not to declare the buffer at the top. - Fix a whitespace nit. Sponsored by: FreeBSD Foundation MFC after: 11 weeks X-MFC with: r215166
This commit is contained in:
parent
99065ae6a8
commit
ebf92e869f
1 changed files with 2 additions and 3 deletions
|
|
@ -106,14 +106,13 @@ cc_set_default(struct cc_algo *new_default)
|
|||
static int
|
||||
cc_default_algo(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
char default_cc[TCP_CA_NAME_MAX];
|
||||
struct cc_algo *funcs;
|
||||
int err, found;
|
||||
|
||||
err = found = 0;
|
||||
|
||||
if (req->newptr == NULL) {
|
||||
char default_cc[TCP_CA_NAME_MAX];
|
||||
|
||||
/* Just print the current default. */
|
||||
CC_LIST_RLOCK();
|
||||
strlcpy(default_cc, CC_DEFAULT()->name, TCP_CA_NAME_MAX);
|
||||
|
|
@ -216,7 +215,7 @@ cc_deregister_algo(struct cc_algo *remove_cc)
|
|||
}
|
||||
}
|
||||
CC_LIST_WUNLOCK();
|
||||
|
||||
|
||||
if (!err)
|
||||
/*
|
||||
* XXXLAS:
|
||||
|
|
|
|||
Loading…
Reference in a new issue