From d01f0824f960a2161cba6c7f702b9039ae4ac43f Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 10 Dec 2009 17:44:23 -0500 Subject: INI Correcting build warnings. The previous patch included "config.h" into the public header which caused all sorts of redefinitions and warnings. --- common/ini/ini_config.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'common/ini/ini_config.c') diff --git a/common/ini/ini_config.c b/common/ini/ini_config.c index 6766dfad6..17cb53b10 100644 --- a/common/ini/ini_config.c +++ b/common/ini/ini_config.c @@ -76,6 +76,11 @@ #define INI_ERROR "errors" #define INI_ERROR_NAME "errname" + +/* Internal sizes. MAX_KEY is defined in config.h */ +#define MAX_VALUE PATH_MAX +#define BUFFER_SIZE MAX_KEY + MAX_VALUE + 3 + /* Internally used functions */ static int config_with_lines(const char *application, FILE *config_file, @@ -111,7 +116,7 @@ const char *parsing_error_str(int parsing_error) } /* Function to return grammar error. - * This functions is currently not used. + * This function is currently not used. * It is planned to be used by the INI * file grammar parser. */ @@ -136,7 +141,7 @@ const char *grammar_error_str(int grammar_error) } /* Function to return validation error. - * This functions is currently not used. + * This function is currently not used. * It is planned to be used by the INI * file grammar validator. */ -- cgit