summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-07 01:57:42 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:25 -0400
commit31bc75f3cde588a8a28c2e3abc9b0bc38cca8baf (patch)
tree75466d32553cb017f786be066f45340f013b04de /src/driver
parent9b8e640378356775d25e39259c8feda7132162b7 (diff)
downloadptycon-31bc75f3cde588a8a28c2e3abc9b0bc38cca8baf.tar.bz2
ptycon-31bc75f3cde588a8a28c2e3abc9b0bc38cca8baf.tar.xz
ptyc_free_driver_ctx(): fix readability.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ptyc_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c
index cd038ee..70d44f5 100644
--- a/src/driver/ptyc_driver_ctx.c
+++ b/src/driver/ptyc_driver_ctx.c
@@ -271,8 +271,8 @@ void ptyc_free_driver_ctx(struct ptyc_driver_ctx * ctx)
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct ptyc_driver_ctx_alloc,ctx);
- addr = addr - offsetof(struct ptyc_driver_ctx_impl,ctx);
+ addr = (uintptr_t)ctx - offsetof(struct ptyc_driver_ctx_impl,ctx);
+ addr = addr - offsetof(struct ptyc_driver_ctx_alloc,ctx);
ictx = (struct ptyc_driver_ctx_alloc *)addr;
ptyc_free_driver_ctx_impl(ictx);
}