Mercurial > masqmail
comparison src/connect.c @ 262:fc1c6425c024
s/EXIT_SUCCESS/0/ && s/EXIT_FAILURE/1/
The constants are all to bulky.
We should have different, meaningful exit codes anyway.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 02 Dec 2010 17:11:25 -0300 |
parents | a80ebfa16cd5 |
children | 41958685480d |
comparison
equal
deleted
inserted
replaced
261:0afe18a9ee03 | 262:fc1c6425c024 |
---|---|
108 out there that begins with a digit. eg. '3dwars.de'. */ | 108 out there that begins with a digit. eg. '3dwars.de'. */ |
109 } | 109 } |
110 | 110 |
111 if (res_func_list == NULL) { | 111 if (res_func_list == NULL) { |
112 logwrite(LOG_ALERT, "res_funcs == NULL !!!\n"); | 112 logwrite(LOG_ALERT, "res_funcs == NULL !!!\n"); |
113 exit(EXIT_FAILURE); | 113 exit(1); |
114 } | 114 } |
115 | 115 |
116 foreach(res_func_list, res_node) { | 116 foreach(res_func_list, res_node) { |
117 resolve_func res_func; | 117 resolve_func res_func; |
118 DEBUG(6) debugf(" foreach() body\n"); | 118 DEBUG(6) debugf(" foreach() body\n"); |
119 res_func = (resolve_func) (res_node->data); | 119 res_func = (resolve_func) (res_node->data); |
120 | 120 |
121 if (res_func == NULL) { | 121 if (res_func == NULL) { |
122 logwrite(LOG_ALERT, "res_func == NULL !!!\n"); | 122 logwrite(LOG_ALERT, "res_func == NULL !!!\n"); |
123 exit(EXIT_FAILURE); | 123 exit(1); |
124 } | 124 } |
125 | 125 |
126 errno = 0; | 126 errno = 0; |
127 if ((addr_list = res_func(NULL, host))) { | 127 if ((addr_list = res_func(NULL, host))) { |
128 | 128 |