Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162598471
D53615.id165954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
823 B
Referenced Files
None
Subscribers
None
D53615.id165954.diff
View Options
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -81,7 +81,6 @@
#else
#define DPRINTF(_l, ...) do {} while (0)
#endif
-#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
#define VT_SYSCTL_INT(_name, _default, _descr) \
int vt_##_name = (_default); \
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -3044,9 +3044,9 @@
DPRINTF(5, "reset WAIT_ACQ, ");
return (0);
} else if (mode->mode == VT_PROCESS) {
- if (!ISSIGVALID(mode->relsig) ||
- !ISSIGVALID(mode->acqsig) ||
- !ISSIGVALID(mode->frsig)) {
+ if (!_SIG_VALID(mode->relsig) ||
+ !_SIG_VALID(mode->acqsig) ||
+ !_SIG_VALID(mode->frsig)) {
DPRINTF(5, "error EINVAL\n");
return (EINVAL);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 15, 10:25 PM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35116391
Default Alt Text
D53615.id165954.diff (823 B)
Attached To
Mode
D53615: vt(4): allow up to _SIG_MAXSIG (128) for VT_SETMODE
Attached
Detach File
Event Timeline
Log In to Comment