From 011158b25c2d3f754276d1b3326ea27aba54ac40 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 23 Aug 2018 19:18:43 +0200 Subject: Cleanup: const-ify functions taking dives and divecomputers Another small step in making things const-clean. See also commit 605e1e19ed0c52a16580c95e36ae79e71b539351. Signed-off-by: Berthold Stoeger --- core/divelist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/divelist.h') diff --git a/core/divelist.h b/core/divelist.h index d014b4df1..5467f10ae 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -23,8 +23,8 @@ extern char *get_dive_gas_string(struct dive *dive); struct dive **grow_dive_table(struct dive_table *table); extern void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p); -extern int get_divenr(struct dive *dive); -extern int get_divesite_idx(struct dive_site *ds); +extern int get_divenr(const struct dive *dive); +extern int get_divesite_idx(const struct dive_site *ds); extern void remove_dive_from_trip(struct dive *dive, short was_autogen); extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive); extern void autogroup_dives(void); @@ -39,7 +39,7 @@ extern void combine_trips(struct dive_trip *trip_a, struct dive_trip *trip_b); extern void find_new_trip_start_time(dive_trip_t *trip); extern struct dive *first_selected_dive(); extern struct dive *last_selected_dive(); -extern bool is_trip_before_after(struct dive *dive, bool before); +extern bool is_trip_before_after(const struct dive *dive, bool before); extern void set_dive_nr_for_current_dive(); int get_min_datafile_version(); -- cgit v1.2.3-70-g09d2