mirror of
https://github.com/sheumann/telnetd.git
synced 2025-03-12 16:30:01 +00:00
Remove bogus casts of valid integer ioctl() arguments.
git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@162671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
2a1a3f355d
commit
7fe816d452
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user