aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tty.c4
-rw-r--r--tty.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 2af487d..048af68 100644
--- a/tty.c
+++ b/tty.c
@@ -970,10 +970,8 @@ void tty_flush __P ((void))
tty_write_state.used = 0;
}
-void tty_raw_write __P ((char *data, int len))
+void tty_raw_write __P ((char *data, size_t len))
{
- assert(len >= 0);
-
if (len == 0) return;
for (;;) {
diff --git a/tty.h b/tty.h
index 9ef4d0b..d29cb08 100644
--- a/tty.h
+++ b/tty.h
@@ -53,7 +53,7 @@ void tty_printf __P ((const char *format, ...)) PRINTF_FUNCTION(1, 2);
int tty_read __P ((char *buf, size_t count));
void tty_gets __P ((char *s, int size));
void tty_flush __P ((void));
-void tty_raw_write __P ((char *data, int len));
+void tty_raw_write __P ((char *data, size_t len));
int tty_has_chars __P ((void));
#endif /* USE_LOCALE */