summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 00:20:41 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 00:21:57 -0300
commit982523e0791e3902c6c6abefe5651b3b494e62f1 (patch)
treed9609d007983524ed9f6d15b2fd6e3642d52391f /main.c
parent0509840b201526851e33182b98fcf61edf70b626 (diff)
downloadeeshow-982523e0791e3902c6c6abefe5651b3b494e62f1.tar.gz
eeshow-982523e0791e3902c6c6abefe5651b3b494e62f1.tar.bz2
eeshow-982523e0791e3902c6c6abefe5651b3b494e62f1.zip
non-interactive diff now exits with 0 if no differences, 1 if differences
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1172381..fddd9fa 100644
--- a/main.c
+++ b/main.c
@@ -141,6 +141,7 @@ int main(int argc, char **argv)
char **gfx_argv;
const struct gfx_ops **ops = ops_list;
struct gfx *gfx;
+ int retval;
if (argc > 1 && !strcmp(argv[1], "gdb")) {
char **args;
@@ -335,10 +336,10 @@ found:
if (pl)
pl_render(pl, gfx, sch_ctx.sheets, sch_ctx.sheets);
}
- gfx_end(gfx);
+ retval = gfx_end(gfx);
sch_free(&sch_ctx);
lib_free(&lib);
- return 0;
+ return retval;
}