summaryrefslogtreecommitdiff
path: root/gfx/gfx.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 00:12:05 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 00:21:57 -0300
commit0509840b201526851e33182b98fcf61edf70b626 (patch)
tree6f42654d0e87f7c665b21c560fb03404d29e0e57 /gfx/gfx.c
parent369c95f88d33f708777b82711ef6d7db3066857a (diff)
downloadeeshow-0509840b201526851e33182b98fcf61edf70b626.tar.gz
eeshow-0509840b201526851e33182b98fcf61edf70b626.tar.bz2
eeshow-0509840b201526851e33182b98fcf61edf70b626.zip
gfx/gfx.c (gfx_end): let "end" function return an integer
Diffstat (limited to 'gfx/gfx.c')
-rw-r--r--gfx/gfx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gfx/gfx.c b/gfx/gfx.c
index a0f055f..a75b054 100644
--- a/gfx/gfx.c
+++ b/gfx/gfx.c
@@ -148,9 +148,12 @@ void *gfx_user(struct gfx *gfx)
}
-void gfx_end(struct gfx *gfx)
+int gfx_end(struct gfx *gfx)
{
+ int res = 0;
+
if (gfx->ops->end)
- gfx->ops->end(gfx->user);
+ res = gfx->ops->end(gfx->user);
free(gfx);
+ return res;
}