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