implemented EXIT_SUCCESS
This commit is contained in:
parent
b4246e35e9
commit
c1d7cd803f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user