diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-10 20:04:47 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | dc9427d16ad5cf9c3129295b49b601cbfbe5f078 (patch) | |
tree | 6310a8b13c7d5367d013f3755a462bc00008b8db /core/divesite.c | |
parent | 8dcc33d8ab4081310d2e18b2c3d6c95141999698 (diff) | |
download | subsurface-dc9427d16ad5cf9c3129295b49b601cbfbe5f078.tar.gz |
Cleanup: rename unregister_trip() to remove_trip()
For consistency with remove_dive(). Moreover, swap parameter order
in remove_dive() so that both functions use the same parameter order.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.c')
-rw-r--r-- | core/divesite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divesite.c b/core/divesite.c index 23ef62070..fe4e23808 100644 --- a/core/divesite.c +++ b/core/divesite.c @@ -391,7 +391,7 @@ struct dive_site *unregister_dive_from_dive_site(struct dive *d) struct dive_site *ds = d->dive_site; if (!ds) return NULL; - remove_dive(&ds->dives, d); + remove_dive(d, &ds->dives); d->dive_site = NULL; return ds; } |