Use exit() constants

This commit is contained in:
Daniel P. Berrange 2012-01-31 15:43:23 +00:00
parent f4d8b45181
commit 0949dedef7
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ static void
remote_viewer_version(void)
{
g_print(_("remote-viewer version %s\n"), VERSION);
exit(0);
exit(EXIT_SUCCESS);
}
int

View File

@ -398,7 +398,7 @@ spice_ctrl_listen_async_cb(GObject *object,
_("Controller connection failed: %s"),
error->message);
g_clear_error(&error);
exit(1); /* TODO: make start async? */
exit(EXIT_FAILURE); /* TODO: make start async? */
}
}

View File

@ -37,7 +37,7 @@ static void virt_viewer_version(void)
{
g_print(_("%s version %s\n"), PACKAGE, VERSION);
exit(0);
exit(EXIT_SUCCESS);
}