Fix const correctness.

This commit is contained in:
Olaf Dietsche
2015-07-08 16:13:08 +02:00
parent 5033c33627
commit 95eab63787
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ int sb_register_arg_set(sb_arg_t *set)
return 0;
}
option_t *sb_find_option(char *name)
option_t *sb_find_option(const char *name)
{
return find_option(&options, name);
}

View File

@ -72,7 +72,7 @@ int sb_register_arg_set(sb_arg_t *set);
int set_option(const char *name, const char *value, sb_arg_type_t type);
/* Find option specified by 'name' */
option_t *sb_find_option(char *name);
option_t *sb_find_option(const char *name);
/* Print list of options specified by 'opts' */
void sb_print_options(sb_arg_t *opts);