Exit after receiving a wayland protocol error.

These errors are always fatal so exiting is appropriate. This also
cleans up the return from main function by always using EXIT_SUCCESS
or EXIT_FAILURE, and "return value" instead of exit() when possible.

Change-Id: I3ea025f10b8d986b22f141b87dad4ed672f96d00
Reviewed-on: https://chromium-review.googlesource.com/981275
Reviewed-by: David Reveman <reveman@chromium.org>
Tested-by: David Reveman <reveman@chromium.org>
1 file changed