diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-23 13:29:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-29 00:09:31 +0000 |
commit | d3a7c5448fe166444980ed41757c9e03d83ece2f (patch) | |
tree | 7a2a4f05b808705cd27845335876184f87243b5c /smtk-import | |
parent | ae6239bfec75df8a6795c2cc0017fcb0148e01e5 (diff) | |
download | subsurface-d3a7c5448fe166444980ed41757c9e03d83ece2f.tar.gz |
Dive site: return pointer to dive_site in create_dive_site_*()
This changes more of the dive-site interface to return pointers
instead of UUIDs. Currently, most call sites directly extract
UUIDs afterwards. Ultimately, the UUIDs will be generally replaced
by pointers, which will then simplify these callers.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'smtk-import')
-rw-r--r-- | smtk-import/smartrak.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smtk-import/smartrak.c b/smtk-import/smartrak.c index f787b401a..d97e8b69f 100644 --- a/smtk-import/smartrak.c +++ b/smtk-import/smartrak.c @@ -376,9 +376,9 @@ static void smtk_build_location(MdbHandle *mdb, char *idx, timestamp_t when, uin ds = get_dive_site_by_name(str); if (!ds) { if (!has_location(&loc)) - *location = create_dive_site(str, when); + *location = create_dive_site(str, when)->uuid; else - *location = create_dive_site_with_gps(str, &loc, when); + *location = create_dive_site_with_gps(str, &loc, when)->uuid; ds = get_dive_site_by_uuid(*location); } else { *location = ds->uuid; |