diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-14 15:37:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-15 10:24:31 +1200 |
commit | 88dc32fdfcb7cb63b0e47280d1f38395077df757 (patch) | |
tree | d3d733d5da8923a5081a90cd87387216888e0df7 /core/divelist.h | |
parent | 5729f93e1f512aa9e68b0e01743152aaee2b7c12 (diff) | |
download | subsurface-88dc32fdfcb7cb63b0e47280d1f38395077df757.tar.gz |
Core: turn add_single_dive() to append_dive()
The only external caller of add_single_dive() used it to append a
dive to the global dive list. Rename the function accordingly and
remove the index parameter.
The internal caller can use the local insert_dive() function, which
doesn't consider selection. That shouldn't be a problem, as the
caller is doing import.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index c09b8651a..ae71040c4 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -34,7 +34,7 @@ extern char *get_dive_gas_string(const struct dive *dive); extern struct dive **grow_dive_table(struct dive_table *table); extern int dive_table_get_insertion_index(struct dive_table *table, struct dive *dive); extern void add_to_dive_table(struct dive_table *table, int idx, struct dive *dive); -extern void add_single_dive(int idx, struct dive *dive); +extern void append_dive(struct dive *dive); 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 struct dive_trip *unregister_dive_from_trip(struct dive *dive); |