This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cx18-ctl: use strtoul instead of strtol where appropriate Author: Hans Verkuil <[email protected]> Date: Fri Sep 26 10:23:23 2025 +0200 In several cases command line arguments were parsed using strtol, even though the argument can never be negative. Change it to strtoul. Signed-off-by: Hans Verkuil <[email protected]> utils/cx18-ctl/cx18-ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=79f3138e8e23dc933ef2383d2a8908f89579fe0a diff --git a/utils/cx18-ctl/cx18-ctl.c b/utils/cx18-ctl/cx18-ctl.c index 4930b123b668..c88d97efc46c 100644 --- a/utils/cx18-ctl/cx18-ctl.c +++ b/utils/cx18-ctl/cx18-ctl.c @@ -261,7 +261,7 @@ int main(int argc, char **argv) usage(); return 0; case OptSetDebugLevel:{ - debug_level = strtol(optarg, 0L, 0); + debug_level = strtoul(optarg, 0L, 0); break; } case OptSetDevice: @@ -274,7 +274,7 @@ int main(int argc, char **argv) } break; case OptReset: - reset = strtol(optarg, 0L, 0); + reset = strtoul(optarg, 0L, 0); break; case OptSetGPIO: subs = optarg;
