summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-26 17:03:35 -0400
committermidipix <writeonce@midipix.org>2016-10-26 22:10:20 -0400
commit1d72ca61b015f5d5b7f5509e1d3bc6fcee82e379 (patch)
treeba681958760a0837ff310d087867aba5bd3a179f /src
parent5334b12f17944df8a163d338479fe2090f97ce6b (diff)
downloadapimagic-1d72ca61b015f5d5b7f5509e1d3bc6fcee82e379.tar.bz2
apimagic-1d72ca61b015f5d5b7f5509e1d3bc6fcee82e379.tar.xz
amgc_free_driver_ctx(): fix readability.
Diffstat (limited to 'src')
-rw-r--r--src/driver/amgc_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c
index 728ecf5..d287008 100644
--- a/src/driver/amgc_driver_ctx.c
+++ b/src/driver/amgc_driver_ctx.c
@@ -295,8 +295,8 @@ void amgc_free_driver_ctx(struct amgc_driver_ctx * ctx)
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct amgc_driver_ctx_alloc,ctx);
- addr = addr - offsetof(struct amgc_driver_ctx_impl,ctx);
+ addr = (uintptr_t)ctx - offsetof(struct amgc_driver_ctx_impl,ctx);
+ addr = addr - offsetof(struct amgc_driver_ctx_alloc,ctx);
ictx = (struct amgc_driver_ctx_alloc *)addr;
amgc_free_driver_ctx_impl(ictx);
}