diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-12-10 17:44:23 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-10 18:12:54 -0500 |
commit | d01f0824f960a2161cba6c7f702b9039ae4ac43f (patch) | |
tree | 342632cb70180c15451928b1aca0056c1fd9e426 /common | |
parent | 796dcd1db104edef2fc6a7be49ae7bf35633ce04 (diff) | |
download | sssd-d01f0824f960a2161cba6c7f702b9039ae4ac43f.tar.gz sssd-d01f0824f960a2161cba6c7f702b9039ae4ac43f.tar.bz2 sssd-d01f0824f960a2161cba6c7f702b9039ae4ac43f.zip |
INI Correcting build warnings.
The previous patch included "config.h"
into the public header which caused all sorts
of redefinitions and warnings.
Diffstat (limited to 'common')
-rw-r--r-- | common/ini/ini_config.c | 9 | ||||
-rw-r--r-- | common/ini/ini_config.h | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/common/ini/ini_config.c b/common/ini/ini_config.c index 6766dfad..17cb53b1 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. */ diff --git a/common/ini/ini_config.h b/common/ini/ini_config.h index f7e04153..12d4a809 100644 --- a/common/ini/ini_config.h +++ b/common/ini/ini_config.h @@ -26,7 +26,6 @@ #include <limits.h> #include <stdio.h> #include "collection.h" -#include "config.h" /* Name of the default (missing section in the INI file */ #define INI_DEFAULT_SECTION "default" @@ -68,11 +67,6 @@ #define ERR_MAXVALID 0 - -/* Internal sizes. MAX_KEY is defined in config.h */ -#define MAX_VALUE PATH_MAX -#define BUFFER_SIZE MAX_KEY + MAX_VALUE + 3 - struct parse_error { unsigned line; int error; |