diff options
author | Gustav HÃ¥llberg <gustav@gmail.com> | 2008-12-31 18:43:20 (GMT) |
---|---|---|
committer | Gustav HÃ¥llberg <gustav@gmail.com> | 2009-01-16 23:37:02 (GMT) |
commit | fcf724beb3c18df073c4ac38f745e541929b754a (patch) | |
tree | 75f4345b32c13b26992734cae73970986c762d97 | |
parent | 83520824ab7339a8565756c0d95823d997788a1c (diff) | |
download | powwow-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.c | 4 | ||||
-rw-r--r-- | tty.h | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -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 (;;) { @@ -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 */ |