Fix decoding of VIDIOC_* ioctls

* v4l2.c: Fix numerous bugs in decoding of VIDIOC_* ioctls.
* tests/ioctl.c (main): Update.
This commit is contained in:
Дмитрий Левин 2016-05-01 17:25:24 +00:00
parent 6331fd4b32
commit 0a47ff79ca
2 changed files with 774 additions and 536 deletions

View File

@ -69,7 +69,7 @@ main(void )
" = -1 EBADF (%m)\n", &data);
(void) ioctl(-1, VIDIOC_ENUMINPUT, 0);
printf("ioctl(-1, VIDIOC_ENUMINPUT, 0)"
printf("ioctl(-1, VIDIOC_ENUMINPUT, NULL)"
" = -1 EBADF (%m)\n");
(void) ioctl(-1, HIDIOCGVERSION, &data);

1308
v4l2.c

File diff suppressed because it is too large Load Diff