diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
commit | 5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch) | |
tree | 2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/canvas.c | |
parent | 7bc2770af08e317b2076540050c68d2de55a11db (diff) | |
download | dimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz |
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/canvas.c')
-rw-r--r-- | libdimension/canvas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/canvas.c b/libdimension/canvas.c index 69cc64b..975686d 100644 --- a/libdimension/canvas.c +++ b/libdimension/canvas.c @@ -54,7 +54,7 @@ dmnsn_delete_canvas(dmnsn_canvas *canvas) /* Free the optimizers */ DMNSN_ARRAY_FOREACH (dmnsn_canvas_optimizer *, i, canvas->optimizers) { if (i->free_fn) { - (*i->free_fn)(i->ptr); + i->free_fn(i->ptr); } } dmnsn_delete_array(canvas->optimizers); @@ -85,7 +85,7 @@ dmnsn_set_pixel(dmnsn_canvas *canvas, size_t x, size_t y, /* Call the optimizers */ DMNSN_ARRAY_FOREACH (dmnsn_canvas_optimizer *, i, canvas->optimizers) { - (*i->optimizer_fn)(canvas, *i, x, y); + i->optimizer_fn(canvas, *i, x, y); } } |