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; }