Change to use EIO
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@94 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0141c92400
commit
058d10cc83
@ -252,13 +252,13 @@ static int console_ioctl(void * cookie, uint32 op, void *buf, size_t len)
|
||||
if(_console_write(((char *)buf) + 2*sizeof(int), len - 2*sizeof(int)) > 0)
|
||||
err = 0; // we're okay
|
||||
else
|
||||
err = ERR_IO_ERROR;
|
||||
err = EIO;
|
||||
restore_cur();
|
||||
mutex_unlock(&console_lock);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
err = ERR_INVALID_ARGS;
|
||||
err = EINVAL;
|
||||
}
|
||||
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user