TTY::write() should return the number of bytes written.

This commit is contained in:
Andreas Kling 2019-01-14 00:19:03 +01:00
commit e7b1101f62
Notes: sideshowbarker 2024-07-19 16:02:58 +09:00

View file

@ -39,7 +39,7 @@ ssize_t TTY::write(const byte* buffer, size_t size)
dbgprintf("\n"); dbgprintf("\n");
#endif #endif
on_tty_write(buffer, size); on_tty_write(buffer, size);
return 0; return size;
} }
bool TTY::has_data_available_for_reading() const bool TTY::has_data_available_for_reading() const