From: Peter van Dijk Date: Tue, 2 Aug 2016 13:48:34 +0000 (+0200) Subject: fix type X-Git-Tag: rec-4.0.2~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4271%2Fhead;p=thirdparty%2Fpdns.git fix type --- diff --git a/pdns/mtasker_ucontext.cc b/pdns/mtasker_ucontext.cc index bb43bad73a..2146f10a84 100644 --- a/pdns/mtasker_ucontext.cc +++ b/pdns/mtasker_ucontext.cc @@ -72,8 +72,8 @@ pdns_ucontext_t::~pdns_ucontext_t() { void pdns_swapcontext (pdns_ucontext_t& __restrict octx, pdns_ucontext_t const& __restrict ctx) { - if (::swapcontext (static_cast(octx.uc_mcontext), - static_cast(ctx.uc_mcontext))) { + if (::swapcontext (static_cast(octx.uc_mcontext), + static_cast(ctx.uc_mcontext))) { throw_errno ("swapcontext() failed"); } if (ctx.exception) { @@ -87,8 +87,8 @@ pdns_makecontext assert (ctx.uc_link); assert (ctx.uc_stack.size()); - auto const mcp = static_cast(ctx.uc_mcontext); - auto const next = static_cast(ctx.uc_link->uc_mcontext); + auto const mcp = static_cast(ctx.uc_mcontext); + auto const next = static_cast(ctx.uc_link->uc_mcontext); if (::getcontext (mcp)) { throw_errno ("getcontext() failed"); }