]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove references to methods and app_api.c
authorEvan Hunt <each@isc.org>
Fri, 19 Oct 2018 06:59:18 +0000 (23:59 -0700)
committerEvan Hunt <each@isc.org>
Fri, 19 Oct 2018 07:28:53 +0000 (00:28 -0700)
lib/isc/unix/app.c
lib/isc/win32/app.c

index ea691d4127156562a974398d83374b8593318d75..5705a44efb2b807cc0c35d71b24bf404ce9339e4 100644 (file)
@@ -449,10 +449,12 @@ isc_app_ctxrun(isc_appctx_t *ctx0) {
 isc_result_t
 isc_app_run(void) {
        isc_result_t result;
+
        is_running = true;
        result = isc_app_ctxrun((isc_appctx_t *)&isc_g_appctx);
        is_running = false;
-       return result;
+
+       return (result);
 }
 
 bool
index 299374dff51c059c56eaf2077ea146428e465908..ae4c015413129aeeab21a8b03a57f3cd0e6867d8 100644 (file)
@@ -123,7 +123,6 @@ isc_result_t
 isc_app_start(void) {
        isc_g_appctx.common.impmagic = APPCTX_MAGIC;
        isc_g_appctx.common.magic = ISCAPI_APPCTX_MAGIC;
-       isc_g_appctx.common.methods = &appmethods.methods;
        isc_g_appctx.mctx = NULL;
        /* The remaining members will be initialized in ctxstart() */
 
@@ -370,7 +369,6 @@ isc_appctx_create(isc_mem_t *mctx, isc_appctx_t **ctxp) {
 
        ctx->common.impmagic = APPCTX_MAGIC;
        ctx->common.magic = ISCAPI_APPCTX_MAGIC;
-       ctx->common.methods = &appmethods.methods;
 
        ctx->mctx = NULL;
        isc_mem_attach(mctx, &ctx->mctx);
@@ -423,5 +421,3 @@ isc_appctx_settimermgr(isc_appctx_t *ctx0, isc_timermgr_t *timermgr) {
 
        ctx->timermgr = timermgr;
 }
-
-#include "../app_api.c"