1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +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 {
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;

View File

@ -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);