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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user