mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[options] const char * in get_opt_
This commit is contained in:
parent
a48cd50a8b
commit
695ef45cf1
@ -284,7 +284,7 @@ get_opt_(
|
|||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
char *file, int line, enum option_type option_type,
|
char *file, int line, enum option_type option_type,
|
||||||
#endif
|
#endif
|
||||||
struct option *tree, char *name, struct session *ses)
|
struct option *tree, const char *name, struct session *ses)
|
||||||
{
|
{
|
||||||
struct option *opt = NULL;
|
struct option *opt = NULL;
|
||||||
|
|
||||||
|
@ -299,10 +299,10 @@ extern struct option *get_opt_rec(struct option *, const char *);
|
|||||||
extern struct option *get_opt_rec_real(struct option *, const char *);
|
extern struct option *get_opt_rec_real(struct option *, const char *);
|
||||||
struct option *indirect_option(struct option *);
|
struct option *indirect_option(struct option *);
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
extern union option_value *get_opt_(char *, int, enum option_type, struct option *, char *, struct session *);
|
extern union option_value *get_opt_(char *, int, enum option_type, struct option *, const char *, struct session *);
|
||||||
#define get_opt(tree, name, ses, type) get_opt_(__FILE__, __LINE__, type, tree, name, ses)
|
#define get_opt(tree, name, ses, type) get_opt_(__FILE__, __LINE__, type, tree, name, ses)
|
||||||
#else
|
#else
|
||||||
extern union option_value *get_opt_(struct option *, char *, struct session *);
|
extern union option_value *get_opt_(struct option *, const char *, struct session *);
|
||||||
#define get_opt(tree, name, ses, type) get_opt_(tree, name, ses)
|
#define get_opt(tree, name, ses, type) get_opt_(tree, name, ses)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user