Keyboard and Tablet were likewise using the aforementioned ioctls incorrectly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41896 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2011-06-03 22:23:10 +00:00
parent baf8979f50
commit eab06f5f40
2 changed files with 3 additions and 2 deletions
@@ -282,7 +282,7 @@ KeyboardDevice::_ControlThread()
memset(states, 0, sizeof(states));
while (fActive) {
if (ioctl(fFD, KB_READ, &keyInfo) != B_OK) {
if (ioctl(fFD, KB_READ, &keyInfo, sizeof(keyInfo)) != B_OK) {
_ControlThreadCleanup();
// TOAST!
return 0;
@@ -322,7 +322,8 @@ TabletInputDevice::DeviceWatcher(void *arg)
BMessage *message;
while (dev->active) {
memset(&movements, 0, sizeof(movements));
if (ioctl(dev->fd, MS_READ, &movements) != B_OK) {
if (ioctl(dev->fd, MS_READ, &movements,
sizeof(movements)) != B_OK) {
snooze(10000); // this is a realtime thread, and something is wrong...
continue;
}