Add CTLFLAG_NOFETCH flag; console vty code runs before tunable fetch
Also remove redundant "" assignment for string in BSS. Submitted by: hselasky@
This commit is contained in:
parent
dc847eb656
commit
6ac6c9d5f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267973
@ -652,9 +652,9 @@ sysbeep(int pitch __unused, int period __unused)
|
||||
/*
|
||||
* Temporary support for sc(4) to vt(4) transition.
|
||||
*/
|
||||
static char vty_name[16] = "";
|
||||
SYSCTL_STRING(_kern, OID_AUTO, vty, CTLFLAG_RDTUN, vty_name, 0,
|
||||
"Console vty driver");
|
||||
static char vty_name[16];
|
||||
SYSCTL_STRING(_kern, OID_AUTO, vty, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, vty_name,
|
||||
0, "Console vty driver");
|
||||
|
||||
int
|
||||
vty_enabled(unsigned vty)
|
||||
|
Loading…
Reference in New Issue
Block a user