aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav HÃ¥llberg <gustav@gmail.com>2008-12-31 18:43:20 (GMT)
committerGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:37:02 (GMT)
commitfcf724beb3c18df073c4ac38f745e541929b754a (patch)
tree75f4345b32c13b26992734cae73970986c762d97
parent83520824ab7339a8565756c0d95823d997788a1c (diff)
downloadpowwow-fcf724beb3c18df073c4ac38f745e541929b754a.zip
powwow-fcf724beb3c18df073c4ac38f745e541929b754a.tar.gz
powwow-fcf724beb3c18df073c4ac38f745e541929b754a.tar.bz2
fixed tty_raw_write to take a size_t length instead of int
-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 */