diff options
Diffstat (limited to 'src/driver/tpax_unit_ctx.c')
-rw-r--r-- | src/driver/tpax_unit_ctx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/tpax_unit_ctx.c b/src/driver/tpax_unit_ctx.c index b272257..5c4cf80 100644 --- a/src/driver/tpax_unit_ctx.c +++ b/src/driver/tpax_unit_ctx.c @@ -1,6 +1,6 @@ /**************************************************************/ /* tpax: a topological pax implementation */ -/* Copyright (C) 2020--2021 SysDeer Technologies, LLC */ +/* Copyright (C) 2020--2024 SysDeer Technologies, LLC */ /* Released under GPLv2 and GPLv3; see COPYING.TPAX. */ /**************************************************************/ @@ -25,7 +25,7 @@ static int tpax_free_unit_ctx_impl(struct tpax_unit_ctx_impl * ctx, int ret) return ret; } -int tpax_get_unit_ctx( +int tpax_lib_get_unit_ctx( const struct tpax_driver_ctx * dctx, int fdat, const char * path, @@ -65,7 +65,7 @@ int tpax_get_unit_ctx( } ctx->path = path; - ctx->link = ctx->linkbuf; + ctx->link = ctx->linkbuf[0] ? ctx->linkbuf : 0; ctx->uctx.path = &ctx->path; ctx->uctx.link = &ctx->link; @@ -76,7 +76,7 @@ int tpax_get_unit_ctx( return 0; } -void tpax_free_unit_ctx(struct tpax_unit_ctx * ctx) +void tpax_lib_free_unit_ctx(struct tpax_unit_ctx * ctx) { struct tpax_unit_ctx_impl * ictx; uintptr_t addr; |