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