diff --git a/main.cpp b/main.cpp index 6fdc22e..81ab0cf 100644 --- a/main.cpp +++ b/main.cpp @@ -80,7 +80,7 @@ bool handle_window_resize(const SDL_Event& event, bool quit) { return quit; } -int main(int argc, const char * argv[]) { +int main(int argc, char* argv[]) { try { // gather plugins #if DEBUG @@ -101,7 +101,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), "hlrw", long_options, nullptr)) != -1) { + while ((opt_char = getopt_long(argc, argv, "hlrw", long_options, nullptr)) != -1) { std::string arg {optarg ? optarg : ""}; switch (opt_char) { case 0: {