From a0e8007b3e7fb97c5c6cdb46d3e6bf1d90fc5a75 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 1 Jul 2016 17:52:25 +0300 Subject: [PATCH] Fix detached_cb ctx arg in trans-dvalue example --- examples/debug-trans-dvalue/duk_trans_dvalue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/debug-trans-dvalue/duk_trans_dvalue.c b/examples/debug-trans-dvalue/duk_trans_dvalue.c index 8470a5f4..84cf70b3 100644 --- a/examples/debug-trans-dvalue/duk_trans_dvalue.c +++ b/examples/debug-trans-dvalue/duk_trans_dvalue.c @@ -1227,9 +1227,11 @@ void duk_trans_dvalue_write_flush_cb(void *udata) { duk__trans_call_cooperate(ctx, 0); } -void duk_trans_dvalue_detached_cb(void *udata) { +void duk_trans_dvalue_detached_cb(duk_context *duk_ctx, void *udata) { duk_trans_dvalue_ctx *ctx = (duk_trans_dvalue_ctx *) udata; + (void) duk_ctx; + #if defined(DEBUG_PRINTS) fprintf(stderr, "%s: %p\n", __func__, udata); fflush(stderr);