diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2016-10-11 16:08:10 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-10-12 14:03:01 -0700 |
commit | 8224171c2217e863e49251e6ccce52c74806de7c (patch) | |
tree | d059542c41f55e0be65e6c85b109d0387e50a867 | |
parent | e57b6a13ab429e887eaf41a09cb15daf2de204ac (diff) |
simple-im: Use returns from main() consistently
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Jan Arne Petersen <janarne@gmail.com>
-rw-r--r-- | clients/weston-simple-im.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/weston-simple-im.c b/clients/weston-simple-im.c index 1663d84f..f766a88d 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; |