diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-02 23:34:16 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-02 23:34:16 +0000 |
commit | 785cdb0114f8cf534ef93e413e49fbfb62521a67 (patch) | |
tree | 8b464779ba774c20eb7dfb29ac5f9544c652a374 /src/audio.c | |
parent | 4f912f1b905f54d8e238559430511f9d4aae7c5a (diff) | |
download | mpd-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/audio.c')
-rw-r--r-- | src/audio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audio.c b/src/audio.c index 3e61a6548..c5f0fa9bc 100644 --- a/src/audio.c +++ b/src/audio.c @@ -49,7 +49,7 @@ void initAudioDriver() { if (*test!='\0') { ERROR("\"%s\" is not a valid write size", (getConf())[CONF_AUDIO_WRITE_SIZE]); - exit(-1); + exit(EXIT_FAILURE); } audio_ao_options = NULL; @@ -62,13 +62,13 @@ void initAudioDriver() { ao_driver_id((getConf())[CONF_AO_DRIVER]))<0) { ERROR("\"%s\" is not a valid ao driver\n", (getConf())[CONF_AO_DRIVER]); - exit(-1); + exit(EXIT_FAILURE); } if((ai = ao_driver_info(audio_ao_driver_id))==NULL) { ERROR("problems getting ao_driver_info\n"); ERROR("you may not have permission to the audio device\n"); - exit(-1); + exit(EXIT_FAILURE); } dup = strdup((getConf())[CONF_AO_DRIVER_OPTIONS]); @@ -81,7 +81,7 @@ void initAudioDriver() { if(!key) { ERROR("problems parsing " "ao_driver_options \"%s\"\n", n1); - exit(-1); + exit(EXIT_FAILURE); } /*found = 0; for(i=0;i<ai->option_count;i++) { @@ -94,13 +94,13 @@ void initAudioDriver() { ERROR("\"%s\" is not an option for " "\"%s\" ao driver\n",key, ai->short_name); - exit(-1); + exit(EXIT_FAILURE); }*/ value = strtok_r(NULL,"",&stk2); if(!value) { ERROR("problems parsing " "ao_driver_options \"%s\"\n", n1); - exit(-1); + exit(EXIT_FAILURE); } ao_append_option(&audio_ao_options,key,value); n1 = strtok_r(NULL,";",&stk1); |