X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fconsole.cpp;fp=source%2Fio%2Fconsole.cpp;h=abb872d12e41c915a3876250abe340ddec13bf52;hp=a7417edcee8f186263c965363f4942d9b1f82768;hb=c8bf2d6c15893ccc9dbc4e04611b7229029f4808;hpb=817e584903996a041692640720a5a272d847a3c7 diff --git a/source/io/console.cpp b/source/io/console.cpp index a7417ed..abb872d 100644 --- a/source/io/console.cpp +++ b/source/io/console.cpp @@ -28,18 +28,18 @@ void Console::set_inherit(bool i) sys_set_inherit(handle, i); } -unsigned Console::do_write(const char *buf, unsigned len) +size_t Console::do_write(const char *buf, size_t len) { check_access(M_WRITE); return sys_write(handle, buf, len); } -unsigned Console::do_read(char *buf, unsigned len) +size_t Console::do_read(char *buf, size_t len) { check_access(M_READ); - unsigned ret = sys_read(handle, buf, len); + size_t ret = sys_read(handle, buf, len); if(ret==0) set_eof();