svn commit: r282646 - head/sys/dev/vt
Hans Petter Selasky
hselasky at FreeBSD.org
Fri May 8 16:37:41 UTC 2015
Author: hselasky
Date: Fri May 8 16:37:40 2015
New Revision: 282646
URL: https://svnweb.freebsd.org/changeset/base/282646
Log:
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
Modified:
head/sys/dev/vt/vt.h
Modified: head/sys/dev/vt/vt.h
==============================================================================
--- head/sys/dev/vt/vt.h Fri May 8 16:19:01 2015 (r282645)
+++ head/sys/dev/vt/vt.h Fri May 8 16:37:40 2015 (r282646)
@@ -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;
More information about the svn-src-all
mailing list