From 4387433f3bc125ed8dd08bd974efd8f00fcb5949 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 27 Apr 2024 15:58:59 +0200 Subject: Fix issues reported by cppcheck --- src/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/options.cpp') diff --git a/src/options.cpp b/src/options.cpp index 545d11a..9fc89cd 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -181,8 +181,8 @@ OptionParser::parse_common(int *const argc, char ***const argv, Options &opts) *argv += 1; int ch; - char *arg_sector_size = NULL; - char *arg_buffer_size = NULL; + const char *arg_sector_size = NULL; + const char *arg_buffer_size = NULL; while ((ch = getopt(*argc, *argv, ":b:s:")) != -1) { switch (ch) { -- cgit v1.2.3