Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
p->g = get_random() % 256;
p->b = get_random() % 256;
- LIST_HEAD_INIT(p->list);
+ INIT_LIST_HEAD(&p->list);
}
void draw_planet(SDL_Surface *screen, struct planet *p)
unsigned char r, g, b;
};
-#define list_to_planet(planet) container_of((planet), struct planet, list)
+#define list_to_planet(list_head) container_of((list_head), struct planet, list)
void init_planet(const SDL_Surface *screen, struct planet *p);
void draw_planet(SDL_Surface *screen, struct planet *p);