aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.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/playerData.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 '')
-rw-r--r--src/playerData.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/playerData.c b/src/playerData.c
index 07b0dfb3c..f86a86cb9 100644
--- a/src/playerData.c
+++ b/src/playerData.c
@@ -45,7 +45,7 @@ void initPlayerData() {
if(*test!='\0' || bufferSize<=0) {
ERROR("buffer size \"%s\" is not a positive integer\n",
getConf()[CONF_BUFFER_SIZE]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
bufferSize*=1024;
@@ -53,7 +53,7 @@ void initPlayerData() {
if(buffered_chunks >= 1<<15) {
ERROR("buffer size \"%i\" is too big\n",bufferSize);
- exit(-1);
+ exit(EXIT_FAILURE);
}
perc = strtod((getConf())[CONF_BUFFER_BEFORE_PLAY],&test);
@@ -61,7 +61,7 @@ void initPlayerData() {
ERROR("buffered before play \"%s\" is not a positive "
"percentage and less than 100 percent\n",
(getConf())[CONF_BUFFER_BEFORE_PLAY]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
buffered_before_play = (perc/100)*buffered_chunks;
if(buffered_before_play>buffered_chunks) {
@@ -77,15 +77,15 @@ void initPlayerData() {
if((shmid = shmget(IPC_PRIVATE,allocationSize,IPC_CREAT|0600))<0) {
ERROR("problems shmget'ing\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
if((playerData_pd = shmat(shmid,NULL,0))<0) {
ERROR("problems shmat'ing\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
if (shmctl(shmid, IPC_RMID, 0)<0) {
ERROR("problems shmctl'ing\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
buffer = &(playerData_pd->buffer);