diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-26 18:15:54 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-26 18:15:54 +0000 |
commit | bba444524eca700970f69261bc470fb01a138222 (patch) | |
tree | 7d5e302586ed757a6eb3f71a27f84bba60383fd4 /src/permission.c | |
parent | dba45a59928301da0faa4ec679eb1a3a81d5fba5 (diff) | |
download | mpd-bba444524eca700970f69261bc470fb01a138222.tar.gz mpd-bba444524eca700970f69261bc470fb01a138222.tar.xz mpd-bba444524eca700970f69261bc470fb01a138222.zip |
Changing all calls to ERROR() followed by exit(EXIT_FAILURE) with a single
call to FATAL().
git-svn-id: https://svn.musicpd.org/mpd/trunk@6276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/permission.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/permission.c b/src/permission.c index e12cdcdc8..3d597052c 100644 --- a/src/permission.c +++ b/src/permission.c @@ -57,8 +57,7 @@ static int parsePermissions(char *string) } else if (strcmp(temp, PERMISSION_ADMIN_STRING) == 0) { permission |= PERMISSION_ADMIN; } else { - ERROR("unknown permission \"%s\"\n", temp); - exit(EXIT_FAILURE); + FATAL("unknown permission \"%s\"\n", temp); } temp = strtok_r(NULL, PERMISSION_SEPERATOR, &tok); @@ -87,19 +86,16 @@ void initPermissions(void) do { if (!strstr(param->value, PERMISSION_PASSWORD_CHAR)) { - ERROR("\"%s\" not found in password string " + FATAL("\"%s\" not found in password string " "\"%s\", line %i\n", PERMISSION_PASSWORD_CHAR, param->value, param->line); - exit(EXIT_FAILURE); } if (!(temp = strtok_r(param->value, PERMISSION_PASSWORD_CHAR, &cp2))) { - ERROR - ("something weird just happened in permission.c\n"); - exit(EXIT_FAILURE); + FATAL("something weird just happened in permission.c\n"); } password = temp; |