summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-24 19:40:14 -0400
committermidipix <writeonce@midipix.org>2016-10-24 19:40:14 -0400
commita136610f243aa5c67b8646b07a3a4cb53ee4e4b8 (patch)
tree0b03093d9e19805afade3caa085fcf339ff3c86b
parent0254dfb578e56cdc5cfef8df959b45fb454e3a8f (diff)
downloadslibtool-a136610f243aa5c67b8646b07a3a4cb53ee4e4b8.tar.bz2
slibtool-a136610f243aa5c67b8646b07a3a4cb53ee4e4b8.tar.xz
slbt_free_driver_ctx(): fix readability.
-rw-r--r--src/driver/slbt_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 088f431..6b2cfaa 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1150,8 +1150,8 @@ void slbt_free_driver_ctx(struct slbt_driver_ctx * ctx)
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct slbt_driver_ctx_alloc,ctx);
- addr = addr - offsetof(struct slbt_driver_ctx_impl,ctx);
+ addr = (uintptr_t)ctx - offsetof(struct slbt_driver_ctx_impl,ctx);
+ addr = addr - offsetof(struct slbt_driver_ctx_alloc,ctx);
ictx = (struct slbt_driver_ctx_alloc *)addr;
slbt_free_driver_ctx_impl(ictx);
}