1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

[forms] const in form_type_name

This commit is contained in:
Witold Filipczyk 2022-02-15 17:28:44 +01:00
parent 2d09a3fb84
commit 5704368a02
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
struct form_type_name { struct form_type_name {
enum form_type num; enum form_type num;
char *name; const char *name;
}; };
static struct form_type_name form_type2name[] = { static struct form_type_name form_type2name[] = {
@ -53,7 +53,7 @@ str2form_type(const char *s)
return FC_NONE; return FC_NONE;
} }
char * const char *
form_type2str(enum form_type num) form_type2str(enum form_type num)
{ {
int n; int n;

View File

@ -129,7 +129,7 @@ struct el_form_control {
/* Numerical form type <-> form type name */ /* Numerical form type <-> form type name */
enum form_type str2form_type(const char *s); 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); struct form *init_form(void);
void done_form(struct form *form); void done_form(struct form *form);