summaryrefslogtreecommitdiff
path: root/tests/ioctl_v4l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ioctl_v4l2.c')
-rw-r--r--tests/ioctl_v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ioctl_v4l2.c b/tests/ioctl_v4l2.c
index af8c3419a..bff5d4355 100644
--- a/tests/ioctl_v4l2.c
+++ b/tests/ioctl_v4l2.c
@@ -76,7 +76,7 @@ main(void )
ioctl(-1, VIDIOC_ENUM_FMT, 0);
printf("ioctl(-1, VIDIOC_ENUM_FMT, NULL) = -1 EBADF (%m)\n");
- struct v4l2_fmtdesc *const p_fmtdesc = tail_alloc(sizeof(*p_fmtdesc));
+ TAIL_ALLOC_OBJECT_CONST_PTR(struct v4l2_fmtdesc, p_fmtdesc);
p_fmtdesc->index = magic;
p_fmtdesc->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
ioctl(-1, VIDIOC_ENUM_FMT, p_fmtdesc);
@@ -88,7 +88,7 @@ main(void )
ioctl(-1, VIDIOC_G_FMT, 0);
printf("ioctl(-1, VIDIOC_G_FMT, NULL) = -1 EBADF (%m)\n");
- struct v4l2_format *const p_format = tail_alloc(sizeof(*p_format));
+ TAIL_ALLOC_OBJECT_CONST_PTR(struct v4l2_format, p_format);
p_format->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
ioctl(-1, VIDIOC_G_FMT, p_format);