cleanup: pass location_t as value to divesite functions

These were passed as pointers, which makes no sense.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-12 22:30:15 +02:00 committed by bstoeger
parent 858a0aecba
commit 90d5bab4e9
8 changed files with 16 additions and 16 deletions

View file

@ -428,7 +428,7 @@ static void smtk_build_location(MdbHandle *mdb, char *idx, struct dive_site **lo
if (!has_location(&loc))
ds = log->sites->create(str);
else
ds = log->sites->create(str, &loc);
ds = log->sites->create(str, loc);
}
*location = ds;