Fix parameter option overlap

All duration parameters behaved as if they were deprecated due to the bits
overlapping.
This commit is contained in:
Markus Mäkelä 2019-05-22 12:25:06 +03:00
parent 85a0cdf46c
commit b6b0a69440
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -110,10 +110,8 @@ enum mxs_module_param_options
MXS_MODULE_OPT_PATH_CREAT = (1 << 5), /**< PATH: Create path if it doesn't exist */
MXS_MODULE_OPT_ENUM_UNIQUE = (1 << 6), /**< ENUM: Only one value can be defined */
MXS_MODULE_OPT_DURATION_S = (1 << 7), /**< DURATION: Cannot be specified in milliseconds */
/**< Parameter is deprecated: Causes a warning to be logged if the parameter
* is used but will not cause a configuration error. */
MXS_MODULE_OPT_DEPRECATED = (1 << 7),
MXS_MODULE_OPT_DEPRECATED = (1 << 8), /**< Parameter is deprecated: Causes a warning to be logged if the
* parameter is used but will not cause a configuration error. */
};
/** String to enum value mappings */