diff options
Diffstat (limited to 'src/Permission.cxx')
-rw-r--r-- | src/Permission.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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 <map> #include <string> @@ -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); |