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:
parent
6331fd4b32
commit
0a47ff79ca
@ -69,7 +69,7 @@ main(void )
|
|||||||
" = -1 EBADF (%m)\n", &data);
|
" = -1 EBADF (%m)\n", &data);
|
||||||
|
|
||||||
(void) ioctl(-1, VIDIOC_ENUMINPUT, 0);
|
(void) ioctl(-1, VIDIOC_ENUMINPUT, 0);
|
||||||
printf("ioctl(-1, VIDIOC_ENUMINPUT, 0)"
|
printf("ioctl(-1, VIDIOC_ENUMINPUT, NULL)"
|
||||||
" = -1 EBADF (%m)\n");
|
" = -1 EBADF (%m)\n");
|
||||||
|
|
||||||
(void) ioctl(-1, HIDIOCGVERSION, &data);
|
(void) ioctl(-1, HIDIOCGVERSION, &data);
|
||||||
|
Loading…
Reference in New Issue
Block a user