enforce code style warnings
This commit is contained in:
parent
c72a215afb
commit
54a49c2d60
10 changed files with 47 additions and 108 deletions
|
|
@ -24,6 +24,8 @@ const struct kubo_context_state_data kubo_context_states[] = {
|
|||
{.id = KUBO_CONTEXT_WALL_NEW, .label = "Wall New", .color = GREEN},
|
||||
{.id = KUBO_CONTEXT_WALL_SELECT, .label = "Wall Select", .color = BLUE}};
|
||||
|
||||
static inline void wall_select_refresh(struct kubo_context *context);
|
||||
|
||||
void kubo_context_init(struct kubo_context *context) {
|
||||
if (!context) {
|
||||
return;
|
||||
|
|
@ -121,7 +123,7 @@ void kubo_context_select_prev_wall(struct kubo_context *context) {
|
|||
}
|
||||
|
||||
static inline void wall_select_refresh(struct kubo_context *context) {
|
||||
for (int i = 0; i < context->walls.count; i++) {
|
||||
for (size_t i = 0; i < context->walls.count; i++) {
|
||||
struct kubo_wall *wall = kubo_wall_arr_get(&context->walls, i);
|
||||
wall->state = i == context->wall_select_index ? KUBO_WALL_SELECTED
|
||||
: KUBO_WALL_DONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue