diff options
author | ru <ru@FreeBSD.org> | 2006-09-26 21:46:12 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-09-26 21:46:12 +0000 |
commit | 91aa6d24db852141d26a9980fe8d6d0ca4e5924b (patch) | |
tree | c4a602ca8c20d0473edfe2be1d0174c6f9f776a9 /usr.sbin | |
parent | 990490fa5fe25ef0ffc6a4e955976b20f33db5a6 (diff) | |
download | FreeBSD-src-91aa6d24db852141d26a9980fe8d6d0ca4e5924b.zip FreeBSD-src-91aa6d24db852141d26a9980fe8d6d0ca4e5924b.tar.gz |
Remove bogus casts of valid integer ioctl() arguments.
Diffstat (limited to 'usr.sbin')
-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 eb307a3..847ff3e 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"); } |