Allow negative values in configuration parameters, where appropriate.

Make the code match the documentation.

As pointed out by GitHub user phyber (#142).

Also various other minor improvements to error reporting during
config file parsing.
This commit is contained in:
Ian Barwick
2016-01-27 09:10:19 +09:00
parent 8f20ab16dd
commit a96f478a43
3 changed files with 32 additions and 38 deletions

View File

@@ -106,6 +106,7 @@ char *trim(char *s);
void error_list_append(ErrorList *error_list, char *error_message);
int repmgr_atoi(const char *s,
const char *config_item,
ErrorList *error_list);
ErrorList *error_list,
bool allow_negative);
#endif