diff options
author | midipix <writeonce@midipix.org> | 2016-11-14 14:35:37 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-14 14:39:32 -0500 |
commit | f11c1faa5ab033f3b2ba1f6b3cd5f5db454c48ec (patch) | |
tree | 87b8df2c2068e5e4f0fea4d125f787caf4ae934e /src/driver/pe_unit_ctx.c | |
parent | 5a5fa5cd283d214bedb92130f2807abe64643f16 (diff) | |
download | perk-f11c1faa5ab033f3b2ba1f6b3cd5f5db454c48ec.tar.bz2 perk-f11c1faa5ab033f3b2ba1f6b3cd5f5db454c48ec.tar.xz |
libary api: pre-alpha: code maintenance: removed struct pe_io_ctx.
Diffstat (limited to 'src/driver/pe_unit_ctx.c')
-rw-r--r-- | src/driver/pe_unit_ctx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c index b3dae71..26fb8a7 100644 --- a/src/driver/pe_unit_ctx.c +++ b/src/driver/pe_unit_ctx.c @@ -47,7 +47,7 @@ int pe_get_unit_ctx( ? PROT_READ | PROT_WRITE : PROT_READ; - if (pe_map_raw_image(dctx,dctx->cctx->ioctx->fdin,path,prot,&ctx->map)) + if (pe_map_raw_image(dctx,-1,path,prot,&ctx->map)) return pe_free_unit_ctx_impl(ctx, PERK_NESTED_ERROR(dctx)); @@ -56,8 +56,6 @@ int pe_get_unit_ctx( PERK_NESTED_ERROR(dctx)); ctx->path = path; - ctx->ioctx.prot = prot; - ctx->uctx.path = &ctx->path; ctx->uctx.map = &ctx->map; ctx->uctx.meta = ctx->meta; |