aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-vbi.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-05-10 18:25:47 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-05-11 09:21:29 +0200
commitbbdc0269bf49aa8dd8259d0c31efff2366f6647f (patch)
tree516c2ef42233cb6b5c71a8100a4ae71f87cf6fd8 /utils/v4l2-ctl/v4l2-ctl-vbi.cpp
parentc39488120a52f88b730c406e2c6abf3176f5d06f (diff)
utils: replace chr functions with std variants
*chr in std offers const overloads, which avoid conversions. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-vbi.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-vbi.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-vbi.cpp b/utils/v4l2-ctl/v4l2-ctl-vbi.cpp
index 6a4f627f..ee55012f 100644
--- a/utils/v4l2-ctl/v4l2-ctl-vbi.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-vbi.cpp
@@ -1,7 +1,8 @@
+#include <cstring>
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
@@ -98,7 +99,7 @@ void vbi_cmd(int ch, char *optarg)
std::exit(EXIT_FAILURE);
}
while (*optarg) {
- subs = strchr(optarg, ',');
+ subs = std::strchr(optarg, ',');
if (subs)
*subs = 0;

Privacy Policy