From c1d7cd803f533494ad7a876e910eeb6598656f24 Mon Sep 17 00:00:00 2001 From: Lexxy Fox Date: Wed, 1 Nov 2023 12:29:39 -0500 Subject: [PATCH] implemented EXIT_SUCCESS --- glxgears.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glxgears.c b/glxgears.c index e6f6ba2..471c97e 100644 --- a/glxgears.c +++ b/glxgears.c @@ -222,7 +222,7 @@ static void draw(void) { Frames = 0; if ((t >= 999.0 * autoexit) && (autoexit)) { cleanup(); - exit(0); + exit(EXIT_SUCCESS); } } } @@ -268,7 +268,7 @@ static void key(unsigned char k, int, int) { break; case 27: /* Escape */ cleanup(); - exit(0); + exit(EXIT_SUCCESS); break; default: return; @@ -379,5 +379,5 @@ int main(int argc, char *argv[]) { update_idle_func(); glutMainLoop(); - return 0; /* ANSI C requires main to return int. */ + return EXIT_SUCCESS; }