Make fixture_get() return const pointer

This commit is contained in:
Tom Stellard 2020-09-07 21:01:26 -07:00
parent 3b54d38578
commit bc506ef7c4
2 changed files with 3 additions and 3 deletions

View File

@ -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 week_round_number The round we're showing.
@param tm A team pointer (for the case SHOW_TEAM). @param tm A team pointer (for the case SHOW_TEAM).
@return A fixture pointer or NULL. */ @return A fixture pointer or NULL. */
Fixture* const Fixture*
fixture_get(gint type, gint clid, gint week_number, fixture_get(gint type, gint clid, gint week_number,
gint week_round_number, const Team *tm) gint week_round_number, const Team *tm)
{ {
@ -1178,7 +1178,7 @@ fixture_get(gint type, gint clid, gint week_number,
printf("fixture_get\n"); printf("fixture_get\n");
#endif #endif
Fixture *fix = NULL; const Fixture *fix = NULL;
gint new_clid = -1; gint new_clid = -1;
if(type == SHOW_TEAM) if(type == SHOW_TEAM)

View File

@ -117,7 +117,7 @@ fixture_result_to_buf(const Fixture *fix, gchar *buf, gboolean swap);
gint gint
fixture_get_number_of_matches(gint week_number, gint week_round_number); 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_get(gint type, gint clid, gint week_number, gint week_round_number, const Team *tm);
Fixture* Fixture*