mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									a1d465a3c5
								
							
						
					
					
						commit
						793aff199f
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user