summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip/libacu/acucommon.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-08-18 07:16:12 +0000
committercharnier <charnier@FreeBSD.org>1997-08-18 07:16:12 +0000
commit6fbe0aac6da1c5f7425829dcc7e22593a28f923c (patch)
tree2cf85c7dc8c3711f9f7ed17879219aea309ddd9d /usr.bin/tip/libacu/acucommon.c
parente0224667fe353de8d6394686a4589a5a7935b6b2 (diff)
downloadFreeBSD-src-6fbe0aac6da1c5f7425829dcc7e22593a28f923c.zip
FreeBSD-src-6fbe0aac6da1c5f7425829dcc7e22593a28f923c.tar.gz
Add prototypes, usage(). Use err(3).
Diffstat (limited to 'usr.bin/tip/libacu/acucommon.c')
-rw-r--r--usr.bin/tip/libacu/acucommon.c10
1 files changed, 8 insertions, 2 deletions
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 <err.h>
+
#if HAVE_SELECT
#include <sys/types.h>
#include <sys/times.h>
@@ -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;
OpenPOWER on IntegriCloud