Commit f6754349 authored by David Lawrence's avatar David Lawrence
Browse files

return rather than exit from main() to shut up HP/UX

parent 8e591e20
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
*/
/* $Id: dnssec-keygen.c,v 1.15 2000/05/08 14:33:32 tale Exp $ */
/* $Id: dnssec-keygen.c,v 1.16 2000/05/08 20:12:41 tale Exp $ */
#include <config.h>
......@@ -264,7 +264,8 @@ main(int argc, char **argv) {
isc_mem_free(mctx, type);
dst_key_free(key);
isc_mem_destroy(&mctx);
exit(0);
return (0);
}
static isc_boolean_t
......
......@@ -108,7 +108,7 @@ main(int argc, char *argv[]) {
test(DNS_COMPRESS_GLOBAL, &name1, &name2, &name3, bit, sizeof bit);
test(DNS_COMPRESS_ALL, &name1, &name2, &name3, bit, sizeof bit);
exit(0);
return (0);
}
void
......
......@@ -52,8 +52,7 @@ void send_done(isc_task_t *, isc_event_t *);
void hex_dump(isc_buffer_t *);
void
hex_dump(isc_buffer_t *b)
{
hex_dump(isc_buffer_t *b) {
unsigned int len;
isc_region_t r;
......@@ -70,8 +69,7 @@ hex_dump(isc_buffer_t *b)
}
static inline void
CHECKRESULT(isc_result_t result, char *msg)
{
CHECKRESULT(isc_result_t result, char *msg) {
if (result != ISC_R_SUCCESS) {
printf("%s: %s\n", msg, isc_result_totext(result));
......@@ -80,8 +78,7 @@ CHECKRESULT(isc_result_t result, char *msg)
}
void
my_accept(isc_task_t *task, isc_event_t *ev_in)
{
my_accept(isc_task_t *task, isc_event_t *ev_in) {
isc_socket_newconnev_t *ev = (isc_socket_newconnev_t *)ev_in;
dns_dispentry_t *resp;
......@@ -109,8 +106,7 @@ my_accept(isc_task_t *task, isc_event_t *ev_in)
}
void
send_done(isc_task_t *task, isc_event_t *ev_in)
{
send_done(isc_task_t *task, isc_event_t *ev_in) {
isc_socketevent_t *ev = (isc_socketevent_t *)ev_in;
dns_dispentry_t *resp = (dns_dispentry_t *)ev_in->ev_arg;
......@@ -132,8 +128,7 @@ send_done(isc_task_t *task, isc_event_t *ev_in)
}
void
start_response(void)
{
start_response(void) {
dns_dispentry_t *resp;
dns_messageid_t id;
isc_sockaddr_t from;
......@@ -234,8 +229,7 @@ start_response(void)
}
void
got_response(isc_task_t *task, isc_event_t *ev_in)
{
got_response(isc_task_t *task, isc_event_t *ev_in) {
dns_dispatchevent_t *ev = (dns_dispatchevent_t *)ev_in;
dns_dispentry_t *resp = ev->ev_sender;
dns_message_t *msg;
......@@ -265,8 +259,7 @@ got_response(isc_task_t *task, isc_event_t *ev_in)
}
void
got_request(isc_task_t *task, isc_event_t *ev_in)
{
got_request(isc_task_t *task, isc_event_t *ev_in) {
dns_dispatchevent_t *ev = (dns_dispatchevent_t *)ev_in;
dns_dispentry_t *resp = ev->ev_sender;
static int cnt = 0;
......@@ -326,8 +319,7 @@ got_request(isc_task_t *task, isc_event_t *ev_in)
}
int
main(int argc, char *argv[])
{
main(int argc, char *argv[]) {
isc_socket_t *s0;
isc_sockaddr_t sockaddr;
......
......@@ -237,5 +237,5 @@ main() {
/* isc_mem_stats(mctx, stdout);*/
isc_mem_destroy(&mctx);
exit(0);
return (0);
}
......@@ -76,5 +76,6 @@ main(int argc, char **argv) {
isc_interfaceiter_destroy(&iter);
cleanup:
isc_mem_destroy(&mctx);
exit(0);
return (0);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
*/
/* $Id: keygen.c,v 1.15 2000/05/08 14:33:32 tale Exp $ */
/* $Id: keygen.c,v 1.16 2000/05/08 20:12:41 tale Exp $ */
#include <config.h>
......@@ -264,7 +264,8 @@ main(int argc, char **argv) {
isc_mem_free(mctx, type);
dst_key_free(key);
isc_mem_destroy(&mctx);
exit(0);
return (0);
}
static isc_boolean_t
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: log_test.c,v 1.14 2000/05/08 14:33:37 tale Exp $ */
/* $Id: log_test.c,v 1.15 2000/05/08 20:12:42 tale Exp $ */
/* Principal Authors: DCL */
......@@ -331,5 +331,5 @@ main (int argc, char **argv) {
if (show_final_mem)
isc_mem_stats(mctx, stderr);
exit(0);
return (0);
}
......@@ -27,7 +27,8 @@
#include <dns/confndc.h>
int main (int argc, char **argv) {
int
main(int argc, char **argv) {
dns_c_ndcctx_t *ndcctx = NULL;
const char *conffile;
isc_mem_t *mem = NULL;
......@@ -80,7 +81,4 @@ int main (int argc, char **argv) {
return (0);
}
......@@ -421,5 +421,5 @@ main(int argc, char **argv) {
isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx);
exit(0);
return (0);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment