diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-25 16:41:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-25 16:41:44 +0000 |
commit | db5a38609339b1bfe019d45765b5405bdd580a54 (patch) | |
tree | 5af9ccd1c469de25e74d8b970c3fab1aa3235f1c /usr.bin/tip | |
parent | a4b7ca99e8620eb800e0ae6b1e31d12f8c2ef1db (diff) |
bring in prototypes
Diffstat (limited to 'usr.bin/tip')
-rw-r--r-- | usr.bin/tip/tip.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index 977e2c976ab..c96ab26376f 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $ */ +/* $OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $"; #endif /* not lint */ /* @@ -372,6 +372,7 @@ tipin() { char bol = 1; int gch; + char ch; /* * Kinda klugey here... @@ -398,7 +399,8 @@ tipin() continue; } else if (gch == '\r') { bol = 1; - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) printf("\r\n"); continue; @@ -407,9 +409,10 @@ tipin() bol = any(gch, value(EOL)); if (boolean(value(RAISE)) && islower(gch)) gch = toupper(gch); - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) - printf("%c", gch); + printf("%c", ch); } } |