diff options
-rw-r--r-- | lib/igt_core.c | 6 | ||||
-rw-r--r-- | lib/igt_core.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index 84cf8d2e..554f2f0e 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -540,7 +540,7 @@ static void oom_adjust_for_doom(void) static int common_init(int *argc, char **argv, const char *extra_short_opts, - struct option *extra_long_opts, + const struct option *extra_long_opts, const char *help_str, igt_opt_handler_t extra_opt_handler, void *handler_data) @@ -746,7 +746,7 @@ out: */ int igt_subtest_init_parse_opts(int *argc, char **argv, const char *extra_short_opts, - struct option *extra_long_opts, + const struct option *extra_long_opts, const char *help_str, igt_opt_handler_t extra_opt_handler, void *handler_data) @@ -777,7 +777,7 @@ enum igt_log_level igt_log_level = IGT_LOG_INFO; */ void igt_simple_init_parse_opts(int *argc, char **argv, const char *extra_short_opts, - struct option *extra_long_opts, + const struct option *extra_long_opts, const char *help_str, igt_opt_handler_t extra_opt_handler, void *handler_data) diff --git a/lib/igt_core.h b/lib/igt_core.h index a244fc39..8f297e06 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -121,7 +121,7 @@ struct option; #endif int igt_subtest_init_parse_opts(int *argc, char **argv, const char *extra_short_opts, - struct option *extra_long_opts, + const struct option *extra_long_opts, const char *help_str, igt_opt_handler_t extra_opt_handler, void *handler_data); @@ -217,7 +217,7 @@ bool igt_only_list_subtests(void); const char *igt_test_name(void); void igt_simple_init_parse_opts(int *argc, char **argv, const char *extra_short_opts, - struct option *extra_long_opts, + const struct option *extra_long_opts, const char *help_str, igt_opt_handler_t extra_opt_handler, void *handler_data); |