Mercurial > masqmail
comparison src/smtpsend.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 | c678d0342451 |
children | b27f66555ba8 |
comparison
equal
deleted
inserted
replaced
261:0afe18a9ee03 | 262:fc1c6425c024 |
---|---|
99 msg->rcpt_list = g_list_append(msg->rcpt_list, create_address_qualified(argv[optind++], TRUE, conf.host_name)); | 99 msg->rcpt_list = g_list_append(msg->rcpt_list, create_address_qualified(argv[optind++], TRUE, conf.host_name)); |
100 } | 100 } |
101 | 101 |
102 if ((ret = accept_message(stdin, msg, ACC_DOT_IGNORE)) == AERR_OK) { | 102 if ((ret = accept_message(stdin, msg, ACC_DOT_IGNORE)) == AERR_OK) { |
103 if ((ret = smtp_deliver(server_name, server_port, resolve_list, msg, NULL, NULL)) == smtp_ok) { | 103 if ((ret = smtp_deliver(server_name, server_port, resolve_list, msg, NULL, NULL)) == smtp_ok) { |
104 exit(EXIT_SUCCESS); | 104 exit(0); |
105 } | 105 } |
106 fprintf(stderr, "deliver failed: %d\n", ret); | 106 fprintf(stderr, "deliver failed: %d\n", ret); |
107 } | 107 } |
108 fprintf(stderr, "accept failed: %d\n", ret); | 108 fprintf(stderr, "accept failed: %d\n", ret); |
109 exit(ret); | 109 exit(ret); |