Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/telnet Change _putchar definition to match curses.h'...
details: https://anonhg.NetBSD.org/src/rev/e6c2ff245553
branches: trunk
changeset: 532755:e6c2ff245553
user: wiz <wiz%NetBSD.org@localhost>
date: Fri Jun 14 09:55:08 2002 +0000
description:
Change _putchar definition to match curses.h's expectations, and
remove some __ left over from de-P()'ing (mmm, inconsistency).
Noted by Juergen Hannken-Illjes.
diffstat:
usr.bin/telnet/externs.h | 12 ++++++------
usr.bin/telnet/tn3270.c | 8 +++++---
2 files changed, 11 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r d4ff15f3f653 -r e6c2ff245553 usr.bin/telnet/externs.h
--- a/usr.bin/telnet/externs.h Fri Jun 14 09:12:08 2002 +0000
+++ b/usr.bin/telnet/externs.h Fri Jun 14 09:55:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs.h,v 1.23 2002/06/14 00:30:56 wiz Exp $ */
+/* $NetBSD: externs.h,v 1.24 2002/06/14 09:55:08 wiz Exp $ */
/*
* Copyright (c) 1988, 1990, 1993
@@ -537,14 +537,14 @@
int Push3270(void);
void Finish3270(void);
void StringToTerminal(char *);
-void _putchar(int);
+int _putchar(int);
void SetIn3270(void);
int tn3270_ttype(void);
int settranscom(int, char *[]);
int shell_continue(void);
-int DataFromTerminal __(char *, int);
-int DataFromNetwork __(char *, int, int);
-void ConnectScreen __(void);
-int DoTerminalOutput __(void);
+int DataFromTerminal(char *, int);
+int DataFromNetwork(char *, int, int);
+void ConnectScreen(void);
+int DoTerminalOutput(void);
#endif /* defined(TN3270) */
diff -r d4ff15f3f653 -r e6c2ff245553 usr.bin/telnet/tn3270.c
--- a/usr.bin/telnet/tn3270.c Fri Jun 14 09:12:08 2002 +0000
+++ b/usr.bin/telnet/tn3270.c Fri Jun 14 09:55:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tn3270.c,v 1.9 2002/06/14 00:30:57 wiz Exp $ */
+/* $NetBSD: tn3270.c,v 1.10 2002/06/14 09:55:08 wiz Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tn3270.c 8.2 (Berkeley) 5/30/95";
#else
-__RCSID("$NetBSD: tn3270.c,v 1.9 2002/06/14 00:30:57 wiz Exp $");
+__RCSID("$NetBSD: tn3270.c,v 1.10 2002/06/14 09:55:08 wiz Exp $");
#endif
#endif /* not lint */
@@ -304,7 +304,7 @@
* curses(3x) can call us to send out data.
*/
- void
+ int
_putchar(c)
char c;
{
@@ -319,6 +319,8 @@
} else {
TTYADD(c);
}
+
+ return (0);
}
#endif /* ((!defined(NOT43)) || defined(PUTCHAR)) */
Home |
Main Index |
Thread Index |
Old Index