From 7625e02d2124960308bb620b181e1d625cc2dceb Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Wed, 13 Dec 2017 23:27:20 +0100 Subject: [PATCH] Make codacy happy. --- linkedlist/check_linkedlist.c | 4 ++-- src/map.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/linkedlist/check_linkedlist.c b/linkedlist/check_linkedlist.c index f5eef24..414c832 100644 --- a/linkedlist/check_linkedlist.c +++ b/linkedlist/check_linkedlist.c @@ -184,7 +184,7 @@ increase(int *number) START_TEST (test_linkedlist_each) { LinkedList *list; - int *pop, *append; + int *append; int i; list = linkedlist_create(); @@ -198,7 +198,7 @@ START_TEST (test_linkedlist_each) linkedlist_each(&list, (void (*)(void*)) increase); for (i = 0; i < 10; ++i) { - pop = linkedlist_pop(&list); + int *pop = linkedlist_pop(&list); ck_assert( i+1 == *pop ); free(pop); pop = NULL; diff --git a/src/map.c b/src/map.c index 91dc4d0..04d38c2 100644 --- a/src/map.c +++ b/src/map.c @@ -128,7 +128,6 @@ void map_render(Map *map, Camera *cam) { unsigned int i, j, monster_count; Room *room; - Monster *monster; if (!timer_started(map->renderTimer)) { timer_start(map->renderTimer); @@ -157,7 +156,7 @@ void map_render(Map *map, Camera *cam) monster_count = linkedlist_size(map->monsters); for (i = 0; i < monster_count; ++i) { - monster = linkedlist_get(&map->monsters, i); + Monster *monster = linkedlist_get(&map->monsters, i); monster_render(monster, cam); } }