mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 01:28:05 -04:00
make return type of main() int
This commit is contained in:
parent
64e41159a9
commit
f74b7e5aae
4 changed files with 11 additions and 5 deletions
|
|
@ -254,7 +254,7 @@ iterate(dns_rbt_t *rbt, isc_boolean_t forward) {
|
|||
#define PRINTERR(r) if (r != DNS_R_SUCCESS) \
|
||||
printf("... %s\n", dns_result_totext(r));
|
||||
|
||||
void
|
||||
int
|
||||
main (int argc, char **argv) {
|
||||
char *command, *arg, *whitespace, buffer[1024];
|
||||
dns_name_t *name, *foundname;
|
||||
|
|
@ -447,5 +447,5 @@ main (int argc, char **argv) {
|
|||
if (show_final_mem)
|
||||
isc_mem_stats(mctx, stderr);
|
||||
|
||||
exit(0);
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ run2(void *arg) {
|
|||
return (NULL);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
unsigned int nworkers;
|
||||
unsigned int i;
|
||||
|
|
@ -122,4 +122,6 @@ main(int argc, char *argv[]) {
|
|||
(void)isc_thread_join(workers[i], NULL);
|
||||
|
||||
isc_rwlock_destroy(&lock);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ my_tick(isc_task_t *task, isc_event_t *event)
|
|||
isc_event_free(&event);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
isc_taskmgr_t *manager = NULL;
|
||||
isc_task_t *t1 = NULL, *t2 = NULL;
|
||||
|
|
@ -189,4 +189,6 @@ main(int argc, char *argv[]) {
|
|||
|
||||
isc_mem_stats(mctx, stdout);
|
||||
isc_mem_destroy(&mctx);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ timeout(isc_task_t *task, isc_event_t *event)
|
|||
isc_task_shutdown(task);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
isc_taskmgr_t *manager = NULL;
|
||||
isc_timermgr_t *timgr = NULL;
|
||||
|
|
@ -176,4 +176,6 @@ main(int argc, char *argv[]) {
|
|||
printf("Statistics for mctx3:\n");
|
||||
isc_mem_stats(mctx3, stdout);
|
||||
isc_mem_destroy(&mctx3);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue