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 /contrib/telnet/telnetd | |
parent | 990490fa5fe25ef0ffc6a4e955976b20f33db5a6 (diff) | |
download | FreeBSD-src-91aa6d24db852141d26a9980fe8d6d0ca4e5924b.zip FreeBSD-src-91aa6d24db852141d26a9980fe8d6d0ca4e5924b.tar.gz |
Remove bogus casts of valid integer ioctl() arguments.
Diffstat (limited to 'contrib/telnet/telnetd')
-rw-r--r-- | contrib/telnet/telnetd/telnetd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c index f500088..a790c89 100644 --- a/contrib/telnet/telnetd/telnetd.c +++ b/contrib/telnet/telnetd/telnetd.c @@ -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 |