aboutsummaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:46:35 (GMT)
committerGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:46:35 (GMT)
commitcd6d75684108f9a214821bcbfd98beeae0832386 (patch)
treeaf4905abdf71a136dd25f073a5f428096313a060 /tty.c
parent7d85d4e9500b2d1d802b8c5b15307ee9c770c245 (diff)
downloadpowwow-cd6d75684108f9a214821bcbfd98beeae0832386.zip
powwow-cd6d75684108f9a214821bcbfd98beeae0832386.tar.gz
powwow-cd6d75684108f9a214821bcbfd98beeae0832386.tar.bz2
cleaned up #option code and added '#option list'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 048af68..b0883b9 100644
--- a/tty.c
+++ b/tty.c
@@ -844,7 +844,7 @@ again:
tty_write_state.used += r;
}
-void tty_printf __P ((const char *format, ...))
+int tty_printf __P ((const char *format, ...))
{
char buf[1024], *bufp = buf;
va_list va;
@@ -870,6 +870,8 @@ void tty_printf __P ((const char *format, ...))
free(old_locale);
tty_puts(bufp);
+
+ return res;
}
static char tty_in_buf[MB_LEN_MAX + 1];