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/Permission.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Permission.cxx') diff --git a/src/Permission.cxx b/src/Permission.cxx index 6f8782324..258ace60a 100644 --- a/src/Permission.cxx +++ b/src/Permission.cxx @@ -22,7 +22,7 @@ #include "ConfigData.hxx" #include "ConfigGlobal.hxx" #include "ConfigOption.hxx" -#include "mpd_error.h" +#include "system/FatalError.hxx" #include #include @@ -64,7 +64,7 @@ static unsigned parsePermissions(const char *string) } else if (strcmp(temp, PERMISSION_ADMIN_STRING) == 0) { permission |= PERMISSION_ADMIN; } else { - MPD_ERROR("unknown permission \"%s\"", temp); + FormatFatalError("unknown permission \"%s\"", temp); } } @@ -92,10 +92,10 @@ void initPermissions(void) strchr(param->value, PERMISSION_PASSWORD_CHAR); if (separator == NULL) - MPD_ERROR("\"%c\" not found in password string " - "\"%s\", line %i", - PERMISSION_PASSWORD_CHAR, - param->value, param->line); + FormatFatalError("\"%c\" not found in password string " + "\"%s\", line %i", + PERMISSION_PASSWORD_CHAR, + param->value, param->line); password = g_strndup(param->value, separator - param->value); -- cgit v1.2.3