From f43240794fafa193c02b06779a4ddf56f1338982 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 21 Feb 2014 13:51:39 +0100 Subject: [PATCH] config: Fix config_alloc prototype --- src/config.c | 2 +- src/config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index eaf7b790..7faa5fc5 100644 --- a/src/config.c +++ b/src/config.c @@ -33,7 +33,7 @@ * \brief Allocate memory for config object * \return pointer to allocated memory */ -config *config_alloc() +config *config_alloc(void) { config *cfg = (config *)malloc(sizeof(config)); if (!cfg) { diff --git a/src/config.h b/src/config.h index bdaee36f..e2a1c4fc 100644 --- a/src/config.h +++ b/src/config.h @@ -63,7 +63,7 @@ typedef struct } config; /* Function definitions */ -config *config_alloc(); +config *config_alloc(void); int config_init(config *cfg); int config_destroy(config *cfg); int config_read(config *cfg,int argc, char *argv[]);