diff options
| author | 2020-02-18 18:10:17 +0000 | |
|---|---|---|
| committer | 2020-02-18 18:10:17 +0000 | |
| commit | 960186aafd858ccd22145c215a7cef64418baf3b (patch) | |
| tree | 5cf96beba17e432a5df45684d226ee1004431803 /usr.bin/dig/lib/isc/unix/app.c | |
| parent | Mention that .AT, .P, .SB, and .UC are extensions; it really matters (diff) | |
| download | wireguard-openbsd-960186aafd858ccd22145c215a7cef64418baf3b.tar.xz wireguard-openbsd-960186aafd858ccd22145c215a7cef64418baf3b.zip | |
Remove unused task, taskmgr, app, socket and socketmgr methods.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/app.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/app.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/usr.bin/dig/lib/isc/unix/app.c b/usr.bin/dig/lib/isc/unix/app.c index 012f0e0523d..555079e0bb7 100644 --- a/usr.bin/dig/lib/isc/unix/app.c +++ b/usr.bin/dig/lib/isc/unix/app.c @@ -104,35 +104,6 @@ typedef struct isc__appctx { static isc__appctx_t isc_g_appctx; -static struct { - isc_appmethods_t methods; - - /*% - * The following are defined just for avoiding unused static functions. - */ - void *run, *shutdown, *start, *reload, *finish, *block, *unblock; -} appmethods = { - { - isc__appctx_destroy, - isc__app_ctxstart, - isc__app_ctxrun, - isc__app_ctxsuspend, - isc__app_ctxshutdown, - isc__app_ctxfinish, - isc__appctx_settaskmgr, - isc__appctx_setsocketmgr, - isc__appctx_settimermgr, - isc__app_ctxonrun - }, - (void *)isc__app_run, - (void *)isc__app_shutdown, - (void *)isc__app_start, - (void *)isc__app_reload, - (void *)isc__app_finish, - (void *)isc__app_block, - (void *)isc__app_unblock -}; - static void reload_action(int arg) { UNUSED(arg); @@ -241,7 +212,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; /* The remaining members will be initialized in ctxstart() */ return (isc__app_ctxstart((isc_appctx_t *)&isc_g_appctx)); @@ -516,7 +486,6 @@ isc__appctx_create(isc_appctx_t **ctxp) { ctx->common.impmagic = APPCTX_MAGIC; ctx->common.magic = ISCAPI_APPCTX_MAGIC; - ctx->common.methods = &appmethods.methods; ctx->taskmgr = NULL; ctx->socketmgr = NULL; |
