diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-09-26 21:46:12 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-09-26 21:46:12 +0000 |
| commit | eb0fa6f5d7610b75026e63cbce2f5907a3d34e22 (patch) | |
| tree | c4a602ca8c20d0473edfe2be1d0174c6f9f776a9 /usr.sbin/vidcontrol | |
| parent | 19ee36f1e5510819578c0858328a5494b8407ba2 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/vidcontrol')
| -rw-r--r-- | usr.sbin/vidcontrol/vidcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index eb307a3fdcdd..847ff3e6e23e 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -147,7 +147,7 @@ revert(void) { int size[3]; - ioctl(0, VT_ACTIVATE, (caddr_t) (long) cur_info.active_vty); + ioctl(0, VT_ACTIVATE, cur_info.active_vty); fprintf(stderr, "\033[=%dA", cur_info.console_info.mv_ovscan); fprintf(stderr, "\033[=%dF", cur_info.console_info.mv_norm.fore); @@ -785,7 +785,7 @@ set_console(char *arg) if (n < 1 || n > 16) { revert(); errx(1, "console number out of range"); - } else if (ioctl(0, VT_ACTIVATE, (caddr_t) (long) n) == -1) { + } else if (ioctl(0, VT_ACTIVATE, n) == -1) { revert(); errc(1, errno, "switching vty"); } |
