config: Fix config_alloc prototype

This commit is contained in:
Luca Barbato 2014-02-21 13:51:39 +01:00
parent ae59116945
commit f43240794f
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
* \brief Allocate memory for config object * \brief Allocate memory for config object
* \return pointer to allocated memory * \return pointer to allocated memory
*/ */
config *config_alloc() config *config_alloc(void)
{ {
config *cfg = (config *)malloc(sizeof(config)); config *cfg = (config *)malloc(sizeof(config));
if (!cfg) { if (!cfg) {

View file

@ -63,7 +63,7 @@ typedef struct
} config; } config;
/* Function definitions */ /* Function definitions */
config *config_alloc(); config *config_alloc(void);
int config_init(config *cfg); int config_init(config *cfg);
int config_destroy(config *cfg); int config_destroy(config *cfg);
int config_read(config *cfg,int argc, char *argv[]); int config_read(config *cfg,int argc, char *argv[]);