From 12e3e04c85b868b491b3d1dd2e6be974da95be7a Mon Sep 17 00:00:00 2001 From: Weber Date: Tue, 16 Apr 2024 16:13:22 +0000 Subject: [PATCH] test --- cv9/snake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv9/snake.c b/cv9/snake.c index ffb92a7..f1f94e7 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -12,9 +12,9 @@ struct snake* add_snake(struct snake* snake, int x, int y) { struct snake* remove_snake(struct snake* snake) { if (snake == NULL) return NULL; - struct snake* new_head = snake->next; + struct snake* hlava = snake->next; free(snake); - return new_head; + return hlava; } void free_snake(struct snake* sn){