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/song.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 '')
-rw-r--r-- | src/song.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/song.c b/src/song.c index c7186d1e0..826fbceb8 100644 --- a/src/song.c +++ b/src/song.c @@ -179,7 +179,7 @@ void readSongInfoIntoList(FILE * fp, SongList * list) { else if(0==strncmp(SONG_FILE,buffer,strlen(SONG_FILE))) { if(!song || song->utf8file) { ERROR("Problems reading song info\n"); - exit(-1); + exit(EXIT_FAILURE); } song->utf8file = strdup(&(buffer[strlen(SONG_FILE)])); } @@ -208,7 +208,7 @@ void readSongInfoIntoList(FILE * fp, SongList * list) { } else { ERROR("songinfo: unknown line in db: %s\n",buffer); - exit(-1); + exit(EXIT_FAILURE); } } |