mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-11 05:17:45 +03:00
Use exit() constants
This commit is contained in:
parent
f4d8b45181
commit
0949dedef7
@ -40,7 +40,7 @@ static void
|
||||
remote_viewer_version(void)
|
||||
{
|
||||
g_print(_("remote-viewer version %s\n"), VERSION);
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -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? */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ static void virt_viewer_version(void)
|
||||
{
|
||||
g_print(_("%s version %s\n"), PACKAGE, VERSION);
|
||||
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user