summaryrefslogtreecommitdiff
path: root/usr.bin/mg/ttyio.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 00:40:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 00:40:57 +0000
commit3528f180d3ebcd8412d900eea8a18ca2e4f799aa (patch)
treef9f149ebd3cf5c19c823bad4f8982c075fc82fb4 /usr.bin/mg/ttyio.c
parentffdc4a6f4aac965d1582f47f75956962f0fc202f (diff)
lint love; ok kjell
Diffstat (limited to 'usr.bin/mg/ttyio.c')
-rw-r--r--usr.bin/mg/ttyio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c
index 8828f446746..ae872d58de5 100644
--- a/usr.bin/mg/ttyio.c
+++ b/usr.bin/mg/ttyio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttyio.c,v 1.29 2005/12/13 06:01:27 kjell Exp $ */
+/* $OpenBSD: ttyio.c,v 1.30 2006/04/03 00:40:56 deraadt Exp $ */
/* This file is in the public domain. */
@@ -161,7 +161,7 @@ int
ttgetc(void)
{
char c;
- int ret;
+ ssize_t ret;
do {
ret = read(STDIN_FILENO, &c, 1);
@@ -184,7 +184,7 @@ charswaiting(void)
{
int x;
- return ((ioctl(0, FIONREAD, (char *) &x) < 0) ? 0 : x);
+ return ((ioctl(0, FIONREAD, &x) < 0) ? 0 : x);
}
/*