[PATCH weston 1/3] simple-im: Use returns from main() consistently
Bryce Harrington
bryce at osg.samsung.com
Tue Oct 11 23:33:14 UTC 2016
Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
clients/weston-simple-im.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clients/weston-simple-im.c b/clients/weston-simple-im.c
index 1663d84..f766a88 100644
--- a/clients/weston-simple-im.c
+++ b/clients/weston-simple-im.c
@@ -500,7 +500,7 @@ main(int argc, char *argv[])
wl_display_roundtrip(simple_im.display);
if (simple_im.input_method == NULL) {
fprintf(stderr, "No input_method global\n");
- exit(1);
+ return -1;
}
simple_im.xkb_context = xkb_context_new(0);
@@ -517,7 +517,7 @@ main(int argc, char *argv[])
if (ret == -1) {
fprintf(stderr, "Dispatch error: %m\n");
- exit(1);
+ return -1;
}
return 0;
--
1.9.1
More information about the wayland-devel
mailing list