Only warn about whitespace in section names

The warnings were logged even when the fix_section_name function was used
to fix non-section names.
This commit is contained in:
Markus Mäkelä
2018-07-11 16:16:11 +03:00
parent fa6bcefdb0
commit 5fdf82a508
4 changed files with 27 additions and 27 deletions

View File

@ -171,11 +171,15 @@ void config_add_module_params_json(const MXS_MODULE* mod,
json_t* output);
/**
* @brief Convert section names to new format
* @brief Convert object names to correct format
*
* @param section Section name to fix
* Check that object name contains no whitespace. If the name contains
* whitespace, trim it, squeeze it and replace the remaining whitespace with
* hyphens.
*
* @param name Object name to fix
*/
void fix_section_name(char *section);
void fix_object_name(char *name);
/**
* @brief Serialize global options