human_player_gui.c: Rename on_exit to on_btn_exit

Surprisingly, glibc declares on_exit(3) as a non-portable function on
stdlib.h.
This commit is contained in:
Xavier Del Campo Romero 2024-01-30 01:13:07 +01:00
parent da42dfab9f
commit 2d8a171ad5
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ static void on_add_walker(void *const arg)
it->show = false;
}
static void on_exit(void *const arg)
static void on_btn_exit(void *const arg)
{
struct human_player *const h = arg;
@ -117,7 +117,7 @@ static void update_items(struct human_player *const h)
b->u.type1.w = 80;
b->common.hcentered = true;
b->u.type1.label.text = "Exit";
b->on_pressed = on_exit;
b->on_pressed = on_btn_exit;
b->arg = h;
gui_add_child(&it->topcnt.common, &b->common);
}