mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
portability
This commit is contained in:
parent
bf6d2e3912
commit
0bbadb0a2f
@ -95,49 +95,49 @@ main(int argc, char *argv[]) {
|
|||||||
printf("task 2 = %p\n", t2);
|
printf("task 2 = %p\n", t2);
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "1",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t1, &event);
|
isc_task_send(t1, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "2",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "2",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t2, &event);
|
isc_task_send(t2, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "3",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "3",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t3, &event);
|
isc_task_send(t3, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "4",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "4",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t4, &event);
|
isc_task_send(t4, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "2",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "2",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t2, &event);
|
isc_task_send(t2, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "3",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "3",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t3, &event);
|
isc_task_send(t3, &event);
|
||||||
event = isc_event_allocate(mctx, main, 1, my_callback, "4",
|
event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "4",
|
||||||
sizeof *event);
|
sizeof *event);
|
||||||
isc_task_send(t4, &event);
|
isc_task_send(t4, &event);
|
||||||
isc_task_purge(t3, NULL, 0);
|
isc_task_purge(t3, NULL, 0);
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
#include "attribute.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user