The "SYSCTL_INT()" default value is only used for read only SYSCTLs
and is not applicable unless the integer pointer is NULL. Set it to zero to avoid confusion. While at it remove extra semicolon at the end of the "VT_SYSCTL_INT()" macro. MFC after: 1 week
This commit is contained in:
parent
4ee69cc712
commit
e4a5ee711a
@ -83,9 +83,8 @@
|
||||
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
|
||||
|
||||
#define VT_SYSCTL_INT(_name, _default, _descr) \
|
||||
static int vt_##_name = _default; \
|
||||
SYSCTL_INT(_kern_vt, OID_AUTO, _name, CTLFLAG_RWTUN, &vt_##_name, _default,\
|
||||
_descr);
|
||||
static int vt_##_name = (_default); \
|
||||
SYSCTL_INT(_kern_vt, OID_AUTO, _name, CTLFLAG_RWTUN, &vt_##_name, 0, _descr)
|
||||
|
||||
struct vt_driver;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user