diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-30 01:13:07 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-30 01:13:07 +0100 |
| commit | 2d8a171ad5b5ec937bd686fc9be8e0a0b3fbfaaf (patch) | |
| tree | c7502522e3caeda96c134fd9adc351d119b39800 /src | |
| parent | da42dfab9f4980779f7dcb9139801d6a4903d033 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/player/src/human_player_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player/src/human_player_gui.c b/src/player/src/human_player_gui.c index ce995c1..4e96133 100644 --- a/src/player/src/human_player_gui.c +++ b/src/player/src/human_player_gui.c @@ -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); } |
