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:
David Reid 2002-07-11 21:40:03 +00:00
parent 0141c92400
commit 058d10cc83
1 changed files with 2 additions and 2 deletions

View File

@ -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;