aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-26 20:14:51 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-03 12:23:02 +0200
commit3e73d62b91c9997cef9739eb0220e2789b8e824f (patch)
tree9200889769650de54e170dadb7bc67c9755926fc /utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
parentb14f60cfcc37a61650e78c4f39143ec61b55a9b4 (diff)
use auto
Found with modernize-use-auto Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-vidcap.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-vidcap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp b/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
index 80312b51..5abab5e7 100644
--- a/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-vidcap.cpp
@@ -366,7 +366,7 @@ void print_touch_buffer(FILE *f, cv4l_buffer &buf, cv4l_fmt &fmt, cv4l_queue &q)
'.', ',', ':', ';', '!', '|', 'i', 'c',
'n', 'o', 'm', 'I', 'C', 'N', 'O', 'M',
};
- __s16 *vbuf = static_cast<__s16 *>(q.g_dataptr(buf.g_index(), 0));
+ auto vbuf = static_cast<__s16 *>(q.g_dataptr(buf.g_index(), 0));
__u32 x, y;
switch (fmt.g_pixelformat()) {
@@ -375,7 +375,7 @@ void print_touch_buffer(FILE *f, cv4l_buffer &buf, cv4l_fmt &fmt, cv4l_queue &q)
fprintf(f, "TD16: ");
for (x = 0; x < fmt.g_width(); x++, vbuf++) {
- __s16 v = static_cast<__s16>(le16toh(*vbuf));
+ auto v = static_cast<__s16>(le16toh(*vbuf));
if (!options[OptConcise])
fprintf(f, "% 4d", v);

Privacy Policy