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/interface.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/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c index 79445c380..0689e9319 100644 --- a/src/interface.c +++ b/src/interface.c @@ -418,25 +418,25 @@ void initInterfaces() { interface_timeout = strtol((getConf())[CONF_CONNECTION_TIMEOUT],&test,10); if(*test!='\0' || interface_timeout<=0) { ERROR("connection timeout \"%s\" is not a positive integer\n",(getConf())[CONF_CONNECTION_TIMEOUT]); - exit(-1); + exit(EXIT_FAILURE); } interface_max_connections = strtol((getConf())[CONF_MAX_CONNECTIONS],&test,10); if(*test!='\0' || interface_max_connections<=0) { ERROR("max connections \"%s\" is not a positive integer\n",(getConf())[CONF_MAX_CONNECTIONS]); - exit(-1); + exit(EXIT_FAILURE); } interface_max_command_list_size = strtoll((getConf())[CONF_MAX_COMMAND_LIST_SIZE],&test,10); if(*test!='\0' || interface_max_command_list_size<=0) { ERROR("max command list size \"%s\" is not a positive integer\n",(getConf())[CONF_MAX_COMMAND_LIST_SIZE]); - exit(-1); + exit(EXIT_FAILURE); } interface_max_output_buffer_size = strtoll((getConf())[CONF_MAX_OUTPUT_BUFFER_SIZE],&test,10); if(*test!='\0' || interface_max_output_buffer_size<=0) { ERROR("max output buffer size \"%s\" is not a positive integer\n",(getConf())[CONF_MAX_OUTPUT_BUFFER_SIZE]); - exit(-1); + exit(EXIT_FAILURE); } interface_max_command_list_size*=1024; |