Make codacy happy.

This commit is contained in:
Linus Probert 2017-12-13 23:27:20 +01:00
parent 00a2b54759
commit 7625e02d21
2 changed files with 3 additions and 4 deletions

View File

@ -184,7 +184,7 @@ increase(int *number)
START_TEST (test_linkedlist_each) START_TEST (test_linkedlist_each)
{ {
LinkedList *list; LinkedList *list;
int *pop, *append; int *append;
int i; int i;
list = linkedlist_create(); list = linkedlist_create();
@ -198,7 +198,7 @@ START_TEST (test_linkedlist_each)
linkedlist_each(&list, (void (*)(void*)) increase); linkedlist_each(&list, (void (*)(void*)) increase);
for (i = 0; i < 10; ++i) { for (i = 0; i < 10; ++i) {
pop = linkedlist_pop(&list); int *pop = linkedlist_pop(&list);
ck_assert( i+1 == *pop ); ck_assert( i+1 == *pop );
free(pop); free(pop);
pop = NULL; pop = NULL;

View File

@ -128,7 +128,6 @@ void map_render(Map *map, Camera *cam)
{ {
unsigned int i, j, monster_count; unsigned int i, j, monster_count;
Room *room; Room *room;
Monster *monster;
if (!timer_started(map->renderTimer)) { if (!timer_started(map->renderTimer)) {
timer_start(map->renderTimer); timer_start(map->renderTimer);
@ -157,7 +156,7 @@ void map_render(Map *map, Camera *cam)
monster_count = linkedlist_size(map->monsters); monster_count = linkedlist_size(map->monsters);
for (i = 0; i < monster_count; ++i) { for (i = 0; i < monster_count; ++i) {
monster = linkedlist_get(&map->monsters, i); Monster *monster = linkedlist_get(&map->monsters, i);
monster_render(monster, cam); monster_render(monster, cam);
} }
} }