Replace perror(3) with err(3).
This commit is contained in:
parent
23832546d5
commit
f8d4d3d635
|
@ -22,11 +22,10 @@
|
|||
#include <sys/wait.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <error.h>
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
@ -110,8 +109,7 @@ bool dispd_session_setup_game_rgba(struct dispd_session* session)
|
|||
"--show-text", "false",
|
||||
(const char*) NULL);
|
||||
#endif
|
||||
perror(chvideomode);
|
||||
exit(127);
|
||||
err(127, "%s", chvideomode);
|
||||
}
|
||||
|
||||
// HACK: The console may be rendered asynchronously and it might still be
|
||||
|
|
Loading…
Reference in New Issue