summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-12-18 19:25:45 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-12-21 16:54:40 +0100
commit793aff199f21cdb4136e39f227ced5553eec04dc (patch)
tree28089e4d07298f94de22f0156407841d3d204177 /lib/igt_core.h
parenta1d465a3c542d965a56e794590b3f00095a1db62 (diff)
lib: Make 'extra_long_opts' const
The extra_long_opts passed to igt_*_parse_opts() isn't modified, so let's make it const. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h4
1 files changed, 2 insertions, 2 deletions
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);