aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-12 18:12:31 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-12 18:12:31 +0300
commit514f878364b7d270c7a7f5b3e86aa1f546473131 (patch)
tree1c1b38efb0f2b2b280eb43d89dec7ce6d13fa2f8 /main.c
parent8322d7ee4a75beecb5285d21641851e17fdab97f (diff)
downloadastar-514f878364b7d270c7a7f5b3e86aa1f546473131.tar.xz
Use EXIT_FAILURE
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index cb183b7..a5aaccf 100644
--- a/main.c
+++ b/main.c
@@ -28,7 +28,7 @@ void sigint_handler(int sig) {
printf("\033[?1003l\n"); /* Makes the terminal NOT report mouse movements */
endwin();
printf("Received SIGINT\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
void initialize_colors(void) {
@@ -145,7 +145,7 @@ int main(int argc, char **argv) {
if (bmp_only) {
map_to_bmp(map, width, height, start_pos, end_pos, path, visited, bmp_filename);
printf("Wrote the bmp to %s. Pathfinding took %f seconds\n", bmp_filename, path_time);
- exit(0);
+ exit(EXIT_SUCCESS);
}
/* This is useful for attaching a debugger */