summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/daemon/ntapi_dsr_init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/ntapi_dsr_init.c b/src/daemon/ntapi_dsr_init.c
index b54131e..f556f0b 100644
--- a/src/daemon/ntapi_dsr_init.c
+++ b/src/daemon/ntapi_dsr_init.c
@@ -145,8 +145,10 @@ static int32_t __ntapi_dsr_start_impl(nt_daemon_params * params)
{
int32_t status;
void * ctx;
+ int32_t (*loop)(void *);
- ctx = params->daemon_loop_context;
+ ctx = params->daemon_loop_context;
+ loop = params->daemon_loop_routine;
if ((status = __ntapi_dsr_once(params)))
return status;
@@ -157,7 +159,7 @@ static int32_t __ntapi_dsr_start_impl(nt_daemon_params * params)
if ((status = __ntapi_dsr_connect_internal_client(params)))
return status;
- if ((status = params->daemon_loop_routine(ctx)))
+ if ((status = loop(ctx)))
return status;
return NT_STATUS_SUCCESS;