From f8d4d3d635e401e024a8547bdde7cb8f0ff569e6 Mon Sep 17 00:00:00 2001 From: auronandace Date: Fri, 4 Feb 2022 21:48:46 +0000 Subject: [PATCH] Replace perror(3) with err(3). --- dispd/client/session.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dispd/client/session.c b/dispd/client/session.c index 37b3d33d..90ccad78 100644 --- a/dispd/client/session.c +++ b/dispd/client/session.c @@ -22,11 +22,10 @@ #include #include -#include +#include #include #include #include -#include #include #include #include @@ -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