Commit 2d025a3b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Cosmetic

parent 2bf6c95c
...@@ -534,12 +534,13 @@ static void MacroDo( httpd_file_sys_t *p_args, ...@@ -534,12 +534,13 @@ static void MacroDo( httpd_file_sys_t *p_args,
case MVLC_VLM_NEW: case MVLC_VLM_NEW:
case MVLC_VLM_SETUP: case MVLC_VLM_SETUP:
{ {
static const char *vlm_properties[11] = static const char *vlm_properties[] =
{ {
/* no args */ /* no args */
"enabled", "disabled", "loop", "unloop", "enabled", "disabled", "loop", "unloop",
/* args required */ /* args required */
"input", "output", "option", "date", "period", "repeat", "append", "input", "output", "option", "date", "period",
"repeat", "append", "",
}; };
vlm_message_t *vlm_answer; vlm_message_t *vlm_answer;
char name[512]; char name[512];
...@@ -565,7 +566,7 @@ static void MacroDo( httpd_file_sys_t *p_args, ...@@ -565,7 +566,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
p += sprintf( psz, "setup %s", name ); p += sprintf( psz, "setup %s", name );
} }
/* Parse the request */ /* Parse the request */
for( i = 0; i < 11; i++ ) for( i = 0; vlm_properties[i][0]; i++ )
{ {
char val[512]; char val[512];
ExtractURIValue( p_request, ExtractURIValue( p_request,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment