From bc506ef7c4eecb411f9d87623d34876d0984c878 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 7 Sep 2020 21:01:26 -0700 Subject: [PATCH] Make fixture_get() return const pointer --- src/fixture.c | 4 ++-- src/fixture.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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*