Remove bogus casts of valid integer ioctl() arguments.

This commit is contained in:
Ruslan Ermilov 2006-09-26 21:46:12 +00:00
parent 19ee36f1e5
commit eb0fa6f5d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162671
2 changed files with 6 additions and 6 deletions

View File

@ -1168,7 +1168,7 @@ interrupt(void)
ptyflush(); /* half-hearted */
#ifdef TCSIG
(void) ioctl(pty, TCSIG, (char *)SIGINT);
(void) ioctl(pty, TCSIG, SIGINT);
#else /* TCSIG */
init_termbuf();
*pfrontp++ = slctab[SLC_IP].sptr ?
@ -1186,7 +1186,7 @@ sendbrk(void)
{
ptyflush(); /* half-hearted */
#ifdef TCSIG
(void) ioctl(pty, TCSIG, (char *)SIGQUIT);
(void) ioctl(pty, TCSIG, SIGQUIT);
#else /* TCSIG */
init_termbuf();
*pfrontp++ = slctab[SLC_ABORT].sptr ?
@ -1200,7 +1200,7 @@ sendsusp(void)
#ifdef SIGTSTP
ptyflush(); /* half-hearted */
# ifdef TCSIG
(void) ioctl(pty, TCSIG, (char *)SIGTSTP);
(void) ioctl(pty, TCSIG, SIGTSTP);
# else /* TCSIG */
*pfrontp++ = slctab[SLC_SUSP].sptr ?
(unsigned char)*slctab[SLC_SUSP].sptr : '\032';
@ -1217,7 +1217,7 @@ recv_ayt(void)
{
#if defined(SIGINFO) && defined(TCSIG)
if (slctab[SLC_AYT].sptr && *slctab[SLC_AYT].sptr != _POSIX_VDISABLE) {
(void) ioctl(pty, TCSIG, (char *)SIGINFO);
(void) ioctl(pty, TCSIG, SIGINFO);
return;
}
#endif

View File

@ -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");
}