diff --git a/src/fixture.c b/src/fixture.c index 28e7c971..7606efa6 100644 --- a/src/fixture.c +++ b/src/fixture.c @@ -1170,7 +1170,7 @@ fixture_get_previous(gint clid, gint week_number, gint week_round_number) @param week_round_number The round we're showing. @param tm A team pointer (for the case SHOW_TEAM). @return A fixture pointer or NULL. */ -Fixture* +const Fixture* fixture_get(gint type, gint clid, gint week_number, gint week_round_number, const Team *tm) { @@ -1178,7 +1178,7 @@ fixture_get(gint type, gint clid, gint week_number, printf("fixture_get\n"); #endif - Fixture *fix = NULL; + const Fixture *fix = NULL; gint new_clid = -1; if(type == SHOW_TEAM) diff --git a/src/fixture.h b/src/fixture.h index dd5d135a..4b098e13 100644 --- a/src/fixture.h +++ b/src/fixture.h @@ -117,7 +117,7 @@ fixture_result_to_buf(const Fixture *fix, gchar *buf, gboolean swap); gint fixture_get_number_of_matches(gint week_number, gint week_round_number); -Fixture* +const Fixture* fixture_get(gint type, gint clid, gint week_number, gint week_round_number, const Team *tm); Fixture*