Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/telnetd Add some (const char *) casts per bin/13667 ...



details:   https://anonhg.NetBSD.org/src/rev/85eb169b2a8d
branches:  trunk
changeset: 514024:85eb169b2a8d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Aug 20 11:01:48 2001 +0000

description:
Add some (const char *) casts per bin/13667 by Brian Ginsbach.

diffstat:

 libexec/telnetd/authenc.c |   6 +++---
 libexec/telnetd/state.c   |  12 ++++++------
 libexec/telnetd/telnetd.c |  16 ++++++++--------
 3 files changed, 17 insertions(+), 17 deletions(-)

diffs (148 lines):

diff -r 413e04ef4074 -r 85eb169b2a8d libexec/telnetd/authenc.c
--- a/libexec/telnetd/authenc.c Mon Aug 20 10:31:46 2001 +0000
+++ b/libexec/telnetd/authenc.c Mon Aug 20 11:01:48 2001 +0000
@@ -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 @@
        int len;
 {
        if (nfrontp + len < netobuf + BUFSIZ) {
-               output_datalen(str, len);
+               output_datalen((const char *)str, len);
                return(len);
        }
        return(0);
diff -r 413e04ef4074 -r 85eb169b2a8d libexec/telnetd/state.c
--- a/libexec/telnetd/state.c   Mon Aug 20 10:31:46 2001 +0000
+++ b/libexec/telnetd/state.c   Mon Aug 20 11:01:48 2001 +0000
@@ -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 @@
                        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 @@
                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 @@
                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 @@
                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 -r 413e04ef4074 -r 85eb169b2a8d libexec/telnetd/telnetd.c
--- a/libexec/telnetd/telnetd.c Mon Aug 20 10:31:46 2001 +0000
+++ b/libexec/telnetd/telnetd.c Mon Aug 20 11:01:48 2001 +0000
@@ -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 @@
 #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 @@
        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 @@
        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 @@
     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))



Home | Main Index | Thread Index | Old Index