From 6fbe0aac6da1c5f7425829dcc7e22593a28f923c Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 18 Aug 1997 07:16:12 +0000 Subject: Add prototypes, usage(). Use err(3). --- usr.bin/tip/libacu/acucommon.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr.bin/tip/libacu/acucommon.c') diff --git a/usr.bin/tip/libacu/acucommon.c b/usr.bin/tip/libacu/acucommon.c index 479e9a3..fe0d146 100644 --- a/usr.bin/tip/libacu/acucommon.c +++ b/usr.bin/tip/libacu/acucommon.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)acucommon.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ /* @@ -42,6 +46,8 @@ static char sccsid[] = "@(#)acucommon.c 8.1 (Berkeley) 6/6/93"; #include "tipconf.h" #include "tip.h" +#include + #if HAVE_SELECT #include #include @@ -161,12 +167,12 @@ int acu_setspeed (int speed) #else /* HAVE TERMIOS */ struct sgttyb sb; if (ioctl(FD, TIOCGETP, &sb) < 0) { - perror("TIOCGETP"); + warn("TIOCGETP"); } else { sb.sg_ispeed = sb.sg_ospeed = speed; if (ioctl(FD, TIOCSETP, &sb) < 0) { - perror("TIOCSETP"); + warn("TIOCSETP"); } else ++rc; -- cgit v1.1