From fcf724beb3c18df073c4ac38f745e541929b754a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20H=C3=A5llberg?= Date: Wed, 31 Dec 2008 13:43:20 -0500 Subject: fixed tty_raw_write to take a size_t length instead of int 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 */ -- cgit v0.10.2