diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-26 11:03:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-28 07:27:10 -0800 |
commit | 0893f87beb943ed8f5872aef18274f456b0c51ca (patch) | |
tree | 1d1405f39a60ef87c3e300ec3210e0058d613ef5 /core/divesite.c | |
parent | f6957c54afaa58eab0b57127ac1f31389dfd35e1 (diff) | |
download | subsurface-0893f87beb943ed8f5872aef18274f456b0c51ca.tar.gz |
Cleanup: uninline get_dive_site_by_uuid
There seems to be no compelling reason to have this function inlined.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.c')
-rw-r--r-- | core/divesite.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/divesite.c b/core/divesite.c index 25ec82ef3..a04d69f23 100644 --- a/core/divesite.c +++ b/core/divesite.c @@ -10,6 +10,16 @@ struct dive_site_table dive_site_table; +struct dive_site *get_dive_site_by_uuid(uint32_t uuid) +{ + int i; + struct dive_site *ds; + for_each_dive_site (i, ds) + if (ds->uuid == uuid) + return get_dive_site(i); + return NULL; +} + /* there could be multiple sites of the same name - return the first one */ struct dive_site *get_dive_site_by_name(const char *name) { |