summaryrefslogtreecommitdiffhomepage
path: root/src/driver/pe_unit_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-24 22:02:27 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:53 -0500
commiteed8012ce892877caa16f1130a5e8037e672f043 (patch)
treebb38d2793b56295b373c8937cca6e5041e646218 /src/driver/pe_unit_ctx.c
parentf64a5b0864c52fcf372c12a92cf9ba5feaa13e77 (diff)
downloadperk-eed8012ce892877caa16f1130a5e8037e672f043.tar.bz2
perk-eed8012ce892877caa16f1130a5e8037e672f043.tar.xz
struct pe_unit_ctx: removed cctx (pass pointer to the driver context instead).
Diffstat (limited to 'src/driver/pe_unit_ctx.c')
-rw-r--r--src/driver/pe_unit_ctx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index 5330659..06a53f9 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -51,16 +51,12 @@ int pe_get_unit_ctx(
return pe_free_unit_ctx_impl(ctx,
PERK_NESTED_ERROR(dctx));
- memcpy(&ctx->cctx,dctx->cctx,
- sizeof(ctx->cctx));
-
ctx->path = path;
ctx->ioctx.prot = prot;
ctx->uctx.path = &ctx->path;
ctx->uctx.map = &ctx->map;
ctx->uctx.meta = ctx->meta;
- ctx->uctx.cctx = &ctx->cctx;
*pctx = &ctx->uctx;
return 0;