diff options
| author | wiz <wiz@NetBSD.org> | 2001-08-20 11:01:48 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2001-08-20 11:01:48 +0000 |
| commit | c54e018e90f5ff1aacf01ee4902f4aebdfcdd62e (patch) | |
| tree | 263d7d732e56951dd483f625f590d70436fddaf9 /libexec | |
| parent | 5ad165ca8f6d284b88cc4f0c241b2a0244caeda7 (diff) | |
Add some (const char *) casts per bin/13667 by Brian Ginsbach.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/telnetd/authenc.c | 6 | ||||
| -rw-r--r-- | libexec/telnetd/state.c | 12 | ||||
| -rw-r--r-- | libexec/telnetd/telnetd.c | 16 |
3 files changed, 17 insertions, 17 deletions
diff --git a/libexec/telnetd/authenc.c b/libexec/telnetd/authenc.c index 2b28c400e50..2da995140e7 100644 --- a/libexec/telnetd/authenc.c +++ b/libexec/telnetd/authenc.c @@ -1,4 +1,4 @@ -/* $NetBSD: authenc.c,v 1.8 2001/07/19 04:57:49 itojun Exp $ */ +/* $NetBSD: authenc.c,v 1.9 2001/08/20 11:01:48 wiz Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)authenc.c 8.2 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: authenc.c,v 1.8 2001/07/19 04:57:49 itojun Exp $"); +__RCSID("$NetBSD: authenc.c,v 1.9 2001/08/20 11:01:48 wiz Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ telnet_net_write(str, len) int len; { if (nfrontp + len < netobuf + BUFSIZ) { - output_datalen(str, len); + output_datalen((const char *)str, len); return(len); } return(0); diff --git a/libexec/telnetd/state.c b/libexec/telnetd/state.c index 0ae3fee10a7..7e38cc418a0 100644 --- a/libexec/telnetd/state.c +++ b/libexec/telnetd/state.c @@ -1,4 +1,4 @@ -/* $NetBSD: state.c,v 1.18 2001/07/27 22:21:46 wiz Exp $ */ +/* $NetBSD: state.c,v 1.19 2001/08/20 11:01:48 wiz Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)state.c 8.5 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: state.c,v 1.18 2001/07/27 22:21:46 wiz Exp $"); +__RCSID("$NetBSD: state.c,v 1.19 2001/08/20 11:01:48 wiz Exp $"); #endif #endif /* not lint */ @@ -461,7 +461,7 @@ send_do(option, init) set_his_want_state_will(option); do_dont_resp[option]++; } - (void) output_data(doopt, option); + (void) output_data((const char *)doopt, option); DIAG(TD_OPTIONS, printoption("td: send do", option)); } @@ -683,7 +683,7 @@ send_dont(option, init) set_his_want_state_wont(option); do_dont_resp[option]++; } - (void) output_data(dont, option); + (void) output_data((const char *)dont, option); DIAG(TD_OPTIONS, printoption("td: send dont", option)); } @@ -833,7 +833,7 @@ send_will(option, init) set_my_want_state_will(option); will_wont_resp[option]++; } - (void) output_data(will, option); + (void) output_data((const char *)will, option); DIAG(TD_OPTIONS, printoption("td: send will", option)); } @@ -992,7 +992,7 @@ send_wont(option, init) set_my_want_state_wont(option); will_wont_resp[option]++; } - (void) output_data(wont, option); + (void) output_data((const char *)wont, option); DIAG(TD_OPTIONS, printoption("td: send wont", option)); } diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 98dbc1592bd..c15dfd204e7 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -/* $NetBSD: telnetd.c,v 1.26 2001/07/19 04:57:50 itojun Exp $ */ +/* $NetBSD: telnetd.c,v 1.27 2001/08/20 11:01:48 wiz Exp $ */ /* * Copyright (C) 1997 and 1998 WIDE Project. @@ -69,7 +69,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: telnetd.c,v 1.26 2001/07/19 04:57:50 itojun Exp $"); +__RCSID("$NetBSD: telnetd.c,v 1.27 2001/08/20 11:01:48 wiz Exp $"); #endif #endif /* not lint */ @@ -731,7 +731,7 @@ getterminaltype(name) static unsigned char sb[] = { IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE }; - output_datalen(sb, sizeof sb); + output_datalen((const char *)sb, sizeof sb); DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb - 2);); } #ifdef ENCRYPTION @@ -747,26 +747,26 @@ getterminaltype(name) static unsigned char sb[] = { IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE }; - output_datalen(sb, sizeof sb); + output_datalen((const char *)sb, sizeof sb); DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb - 2);); } if (his_state_is_will(TELOPT_NEW_ENVIRON)) { static unsigned char sb[] = { IAC, SB, TELOPT_NEW_ENVIRON, TELQUAL_SEND, IAC, SE }; - output_datalen(sb, sizeof sb); + output_datalen((const char *)sb, sizeof sb); DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb - 2);); } else if (his_state_is_will(TELOPT_OLD_ENVIRON)) { static unsigned char sb[] = { IAC, SB, TELOPT_OLD_ENVIRON, TELQUAL_SEND, IAC, SE }; - output_datalen(sb, sizeof sb); + output_datalen((const char *)sb, sizeof sb); DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb - 2);); } if (his_state_is_will(TELOPT_TTYPE)) { - output_datalen(ttytype_sbbuf, sizeof ttytype_sbbuf); + output_datalen((const char *)ttytype_sbbuf, sizeof ttytype_sbbuf); DIAG(TD_OPTIONS, printsub('>', ttytype_sbbuf + 2, sizeof ttytype_sbbuf - 2);); } @@ -845,7 +845,7 @@ _gettermname() if (his_state_is_wont(TELOPT_TTYPE)) return; settimer(baseline); - output_datalen(ttytype_sbbuf, sizeof ttytype_sbbuf); + output_datalen((const char *)ttytype_sbbuf, sizeof ttytype_sbbuf); DIAG(TD_OPTIONS, printsub('>', ttytype_sbbuf + 2, sizeof ttytype_sbbuf - 2);); while (sequenceIs(ttypesubopt, baseline)) |
