From 47d72e2df109d7166c0489c89ed15fac83be33b1 Mon Sep 17 00:00:00 2001 From: Aaro Saila Date: Sat, 3 Aug 2024 16:53:10 +0300 Subject: [PATCH] explicit consts --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 2b1334b..7a94794 100644 --- a/main.c +++ b/main.c @@ -15,7 +15,7 @@ char board[BRD_SIZE_Y][BRD_SIZE_X]; const char SNAKE_VIS = '#'; int main() { - clock_t initClock = clock(); + const clock_t initClock = clock(); // Termios setup struct termios attr; @@ -49,7 +49,7 @@ int main() { int points = 0; int gameSpeed = 0; - int sleepInterval = 200 - gameSpeed; + const int sleepInterval = 200; // Snake head setup snakePart* snakeHead = (snakePart*) malloc(sizeof(snakePart));