summaryrefslogtreecommitdiffstats
path: root/core/divelist.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-13 22:32:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-14 15:57:14 -0400
commitcf4d32c6e8bd60b5e825535702f3e2701b40716b (patch)
tree872d4b65d6b2760507f47463312ca9d99ebc9107 /core/divelist.h
parent444354ec9b6b81cb4f76611b61eb09ffea3c8aed (diff)
downloadsubsurface-cf4d32c6e8bd60b5e825535702f3e2701b40716b.tar.gz
Cleanup: constify get_dive_gas() and get_dive_gas_string()
There's no reason for the dive input-parameter being non-const. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r--core/divelist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.h b/core/divelist.h
index 681934a0c..0f944fe34 100644
--- a/core/divelist.h
+++ b/core/divelist.h
@@ -20,10 +20,10 @@ extern int init_decompression(struct deco_state *ds, struct dive *dive);
/* divelist core logic functions */
extern void process_loaded_dives();
extern void process_imported_dives(struct dive_table *import_table, bool prefer_imported, bool downloaded);
-extern char *get_dive_gas_string(struct dive *dive);
+extern char *get_dive_gas_string(const 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 void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2low_p);
extern int get_divenr(const struct dive *dive);
extern int get_divesite_idx(const struct dive_site *ds);
extern struct dive_trip *unregister_dive_from_trip(struct dive *dive, short was_autogen);