compositor: fix return code from main()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 20 Mar 2015 12:35:58 +0000 (14:35 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 20 Mar 2015 13:55:57 +0000 (15:55 +0200)
commit111c6f9bb728cebbba2d355e95b04563706bd894
tree72ab80f5d1b93cb094a54f9347af8c847a3bfcf7
parent8fd4de458e87ea2cd715464ffd64fcdc77eedca1
compositor: fix return code from main()

There were a few cases of 'goto out' in main() that did not set ret to
EXIT_FAILURE. Shell failing to init is the one I hit when writing tests
for ivi-shell.

Rather than adding a few more 'ret = EXIT_FAILURE', make that the
default and remove the redundant assignments. When Weston exits
properly ec->exit_code will take care of the exit code.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
src/compositor.c