diff --git a/src/player.c b/src/player.c index 7d7198cb..cff57557 100644 --- a/src/player.c +++ b/src/player.c @@ -748,7 +748,7 @@ player_is_banned(const Player *pl) printf("player_is_banned\n"); #endif - Fixture *fix = team_get_fixture(pl->team, FALSE); + const Fixture *fix = team_get_fixture(pl->team, FALSE); gint yellow_red = -1, yellow, red; if(fix == NULL) diff --git a/src/team.c b/src/team.c index 70114c08..5570dc63 100644 --- a/src/team.c +++ b/src/team.c @@ -255,7 +255,7 @@ team_of_id(gint id) /** Return a pointer to the next or last fixture the team participates in. @param tm The team we examine. @return The pointer to the fixture or NULL if none is found. */ -Fixture* +const Fixture* team_get_fixture(const Team *tm, gboolean last_fixture) { #ifdef DEBUG @@ -263,7 +263,7 @@ team_get_fixture(const Team *tm, gboolean last_fixture) #endif gint i, j; - Fixture *fix = NULL; + const Fixture *fix = NULL; if(!last_fixture && (stat0 == STATUS_LIVE_GAME_PAUSE || diff --git a/src/team.h b/src/team.h index 4ec7ef25..cf601671 100644 --- a/src/team.h +++ b/src/team.h @@ -64,7 +64,7 @@ team_get_pointers_from_array(const GArray *teams, GPtrArray *team_ptrs); Team* team_of_id(gint id); -Fixture* +const Fixture* team_get_fixture(const Team *tm, gboolean last_fixture); gfloat diff --git a/src/treeview_helper.c b/src/treeview_helper.c index 7281cd8a..31f884de 100644 --- a/src/treeview_helper.c +++ b/src/treeview_helper.c @@ -1284,7 +1284,7 @@ treeview_helper_player_cards_to_cell(gchar *buf, const Player *pl) #endif gint yellow; - Fixture *fix = + const Fixture *fix = team_get_fixture(pl->team, FALSE); if(fix == NULL) @@ -1429,7 +1429,7 @@ treeview_helper_player_games_goals_to_cell(gchar *buf, const Player *pl, gint ty printf("treeview_helper_player_games_goals_to_cell\n"); #endif - Fixture *fix = team_get_fixture(pl->team, FALSE); + const Fixture *fix = team_get_fixture(pl->team, FALSE); gint clid = pl->team->clid; if(pl->games_goals->len == 0)