implemented EXIT_SUCCESS

This commit is contained in:
Lexxy Fox 2023-11-01 12:29:39 -05:00
parent b4246e35e9
commit c1d7cd803f

View File

@ -222,7 +222,7 @@ static void draw(void) {
Frames = 0; Frames = 0;
if ((t >= 999.0 * autoexit) && (autoexit)) { if ((t >= 999.0 * autoexit) && (autoexit)) {
cleanup(); cleanup();
exit(0); exit(EXIT_SUCCESS);
} }
} }
} }
@ -268,7 +268,7 @@ static void key(unsigned char k, int, int) {
break; break;
case 27: /* Escape */ case 27: /* Escape */
cleanup(); cleanup();
exit(0); exit(EXIT_SUCCESS);
break; break;
default: default:
return; return;
@ -379,5 +379,5 @@ int main(int argc, char *argv[]) {
update_idle_func(); update_idle_func();
glutMainLoop(); glutMainLoop();
return 0; /* ANSI C requires main to return int. */ return EXIT_SUCCESS;
} }