diff --git a/src/main.cpp b/src/main.cpp index 8176e4e..54d8586 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,7 +29,7 @@ void print_version() { std::cout << "curly version 1.0\n"; } -int main(int argc, const char * argv[]) { +int main(int argc, char* argv[]) { try { int opt_char, opt_val; struct option long_options[] = { @@ -37,7 +37,7 @@ int main(int argc, const char * argv[]) { {"version", no_argument, &opt_val, 1}, {nullptr, 0, nullptr, 0} }; - while ((opt_char = getopt_long(argc, const_cast(argv), "h", long_options, nullptr)) != -1) { + while ((opt_char = getopt_long(argc, argv, "h", long_options, nullptr)) != -1) { std::string arg {optarg ? optarg : ""}; switch (opt_char) { case 0: {