aboutsummaryrefslogtreecommitdiffstats
path: root/src/permission.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-02 23:34:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-02 23:34:16 +0000
commit785cdb0114f8cf534ef93e413e49fbfb62521a67 (patch)
tree8b464779ba774c20eb7dfb29ac5f9544c652a374 /src/permission.c
parent4f912f1b905f54d8e238559430511f9d4aae7c5a (diff)
downloadmpd-785cdb0114f8cf534ef93e413e49fbfb62521a67.tar.gz
mpd-785cdb0114f8cf534ef93e413e49fbfb62521a67.tar.xz
mpd-785cdb0114f8cf534ef93e413e49fbfb62521a67.zip
use EXIT_SUCCESS and EXIT_FAILURE
git-svn-id: https://svn.musicpd.org/mpd/trunk@591 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/permission.c')
-rw-r--r--src/permission.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/permission.c b/src/permission.c
index 36c9a39c1..da319325f 100644
--- a/src/permission.c
+++ b/src/permission.c
@@ -59,7 +59,7 @@ unsigned int parsePermissions(char * string) {
}
else {
ERROR("uknown permission \"%s\"\n",temp);
- exit(-1);
+ exit(EXIT_FAILURE);
}
temp = strtok_r(NULL,PERMISSION_SEPERATOR,&tok);
@@ -99,12 +99,12 @@ void initPermissions() {
ERROR("\"%s\" not found in password string \"%s\"\n",
PERMISSION_PASSWORD_CHAR,
nextSet);
- exit(-1);
+ exit(EXIT_FAILURE);
}
if(!(temp = strtok_r(nextSet,PERMISSION_PASSWORD_CHAR,&cp2))) {
ERROR("something weird just happend in permission.c\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
password = temp;