mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-13 05:43:37 -04:00
[forms] const in form_type_name
This commit is contained in:
parent
2d09a3fb84
commit
5704368a02
@ -23,7 +23,7 @@
|
||||
|
||||
struct form_type_name {
|
||||
enum form_type num;
|
||||
char *name;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
static struct form_type_name form_type2name[] = {
|
||||
@ -53,7 +53,7 @@ str2form_type(const char *s)
|
||||
return FC_NONE;
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
form_type2str(enum form_type num)
|
||||
{
|
||||
int n;
|
||||
|
@ -129,7 +129,7 @@ struct el_form_control {
|
||||
|
||||
/* Numerical form type <-> form type name */
|
||||
enum form_type str2form_type(const char *s);
|
||||
char *form_type2str(enum form_type num);
|
||||
const char *form_type2str(enum form_type num);
|
||||
|
||||
struct form *init_form(void);
|
||||
void done_form(struct form *form);
|
||||
|
Loading…
Reference in New Issue
Block a user