diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-06-04 21:25:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-19 13:11:10 -0700 |
commit | d129085b59df6e84f0415c347e8425c13b5ca868 (patch) | |
tree | 6b802faca507b1c600b7156af135cfaa49dc1efd /core/divelist.c | |
parent | 3df32044ee46caf518b23cc6359f98501f7ca961 (diff) | |
download | subsurface-d129085b59df6e84f0415c347e8425c13b5ca868.tar.gz |
Cleanup: use add_to_dive_table() in record_dive_to_table()
This was reimplementing functionality that was already there.
Simply call the already existing function.
Thus, we don't have to export the grow_dive_table function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.c b/core/divelist.c index af253fb4e..62e79ac59 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -775,7 +775,7 @@ int comp_dives(const struct dive *a, const struct dive *b) } /* Dive table functions */ -MAKE_GROW_TABLE(dive_table, struct dive *, dives) +static MAKE_GROW_TABLE(dive_table, struct dive *, dives) MAKE_GET_INSERTION_INDEX(dive_table, struct dive *, dives, dive_less_than) MAKE_ADD_TO(dive_table, struct dive *, dives) static MAKE_REMOVE_FROM(dive_table, dives) |