From 7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 18:20:52 +0200 Subject: mpd_error.h: remove obsolete header Migrate the remaining callers to FatalError(). --- src/ReplayGainConfig.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/ReplayGainConfig.cxx') diff --git a/src/ReplayGainConfig.cxx b/src/ReplayGainConfig.cxx index a921d2130..3442628b3 100644 --- a/src/ReplayGainConfig.cxx +++ b/src/ReplayGainConfig.cxx @@ -23,7 +23,7 @@ #include "ConfigData.hxx" #include "ConfigGlobal.hxx" #include "Playlist.hxx" -#include "mpd_error.h" +#include "system/FatalError.hxx" #include @@ -86,8 +86,8 @@ void replay_gain_global_init(void) const struct config_param *param = config_get_param(CONF_REPLAYGAIN); if (param != NULL && !replay_gain_set_mode_string(param->value)) { - MPD_ERROR("replaygain value \"%s\" at line %i is invalid\n", - param->value, param->line); + FormatFatalError("replaygain value \"%s\" at line %i is invalid\n", + param->value, param->line); } param = config_get_param(CONF_REPLAYGAIN_PREAMP); @@ -97,13 +97,13 @@ void replay_gain_global_init(void) float f = strtod(param->value, &test); if (*test != '\0') { - MPD_ERROR("Replaygain preamp \"%s\" is not a number at " - "line %i\n", param->value, param->line); + FormatFatalError("Replaygain preamp \"%s\" is not a number at " + "line %i\n", param->value, param->line); } if (f < -15 || f > 15) { - MPD_ERROR("Replaygain preamp \"%s\" is not between -15 and" - "15 at line %i\n", param->value, param->line); + FormatFatalError("Replaygain preamp \"%s\" is not between -15 and" + "15 at line %i\n", param->value, param->line); } replay_gain_preamp = pow(10, f / 20.0); @@ -116,13 +116,13 @@ void replay_gain_global_init(void) float f = strtod(param->value, &test); if (*test != '\0') { - MPD_ERROR("Replaygain missing preamp \"%s\" is not a number at " - "line %i\n", param->value, param->line); + FormatFatalError("Replaygain missing preamp \"%s\" is not a number at " + "line %i\n", param->value, param->line); } if (f < -15 || f > 15) { - MPD_ERROR("Replaygain missing preamp \"%s\" is not between -15 and" - "15 at line %i\n", param->value, param->line); + FormatFatalError("Replaygain missing preamp \"%s\" is not between -15 and" + "15 at line %i\n", param->value, param->line); } replay_gain_missing_preamp = pow(10, f / 20.0); -- cgit v1.2.3