From 77995137bf854a03d6a6555a88ea19deee0e37fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 25 Jun 2018 15:06:29 +0200 Subject: [PATCH] config_alloc_longopts(): argument is unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafaël Carré --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 98e8f1c..7f6e0be 100644 --- a/config.c +++ b/config.c @@ -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;