2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

isc_task_create() API change

This commit is contained in:
Bob Halley
2000-04-12 01:41:21 +00:00
parent 0e9c5d24d2
commit 738b9aa3de
26 changed files with 57 additions and 67 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: connection.c,v 1.17 2000/03/14 03:46:14 tale Exp $ */
/* $Id: connection.c,v 1.18 2000/04/12 01:40:58 halley Exp $ */
/* Principal Author: DCL */
@@ -518,7 +518,7 @@ connect_toserver(omapi_object_t *protocol, const char *server_name, int port) {
/*
* Prepare the task that will wait for the connection to be made.
*/
result = isc_task_create(omapi_taskmgr, NULL, 0, &task);
result = isc_task_create(omapi_taskmgr, 0, &task);
if (result != ISC_R_SUCCESS)
return (result);

View File

@@ -91,7 +91,7 @@ omapi_lib_init(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
omapi_taskmgr = taskmgr;
omapi_socketmgr = socketmgr;
result = isc_task_create(omapi_taskmgr, omapi_mctx, 0, &omapi_task);
result = isc_task_create(omapi_taskmgr, 0, &omapi_task);
if (result == ISC_R_SUCCESS)
isc_task_setname(omapi_task, "omapi", NULL);

View File

@@ -168,7 +168,7 @@ listener_accept(isc_task_t *task, isc_event_t *event) {
* The new connection is good to go. Allocate the buffers for it and
* prepare its own task.
*/
if (isc_task_create(omapi_taskmgr, NULL, 0, &connection_task) !=
if (isc_task_create(omapi_taskmgr, 0, &connection_task) !=
ISC_R_SUCCESS)
goto free_task;
@@ -282,7 +282,7 @@ omapi_listener_listen(omapi_object_t *caller, isc_sockaddr_t *addr,
REQUIRE(addr != NULL && isc_sockaddr_getport(addr) != 0);
task = NULL;
result = isc_task_create(omapi_taskmgr, NULL, 0, &task);
result = isc_task_create(omapi_taskmgr, 0, &task);
if (result != ISC_R_SUCCESS)
return (result);