summaryrefslogtreecommitdiff
path: root/src/listen.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/listen.c
parent4f912f1b905f54d8e238559430511f9d4aae7c5a (diff)
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/listen.c')
-rw-r--r--src/listen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listen.c b/src/listen.c
index 374d547b8..5fd07a9b4 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -90,7 +90,7 @@ int establish(unsigned short port) {
if(!(he = gethostbyname((getConf())[CONF_BIND_TO_ADDRESS]))) {
ERROR("can't lookup host \"%s\"\n",
(getConf())[CONF_BIND_TO_ADDRESS]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
switch(he->h_addrtype) {
#ifdef HAVE_IPV6
@@ -99,7 +99,7 @@ int establish(unsigned short port) {
ERROR("no IPv6 support, but a IPv6 address "
"found for \"%s\"\n",
(getConf())[CONF_BIND_TO_ADDRESS]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
bcopy((char *)he->h_addr,(char *)
&sin6.sin6_addr.s6_addr,he->h_length);
@@ -116,7 +116,7 @@ int establish(unsigned short port) {
default:
ERROR("address type for \"%s\" is not IPv4 or IPv6\n",
(getConf())[CONF_BIND_TO_ADDRESS]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
}