config_alloc_longopts(): argument is unused

Signed-off-by: Rafaël Carré <funman@videolan.org>
master
Rafaël Carré 2018-06-25 15:06:29 +02:00 committed by Richard Cochran
parent 3c7fa5dd42
commit 77995137bf
1 changed files with 2 additions and 2 deletions

View File

@ -525,7 +525,7 @@ static void check_deprecated_options(const char **option)
}
}
static struct option *config_alloc_longopts(struct config *cfg)
static struct option *config_alloc_longopts(void)
{
struct config_item *ci;
struct option *opts;
@ -680,7 +680,7 @@ struct config *config_create(void)
}
STAILQ_INIT(&cfg->interfaces);
cfg->opts = config_alloc_longopts(cfg);
cfg->opts = config_alloc_longopts();
if (!cfg->opts) {
free(cfg);
return NULL;