mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
uemis: pass dive pointer as dive pointer, not void pointer
This was very obscure: the function that parses into a struct dive was passed a void-pointer instead of a struct dive-pointer. Why? Just pass the correct type. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
21f68387ae
commit
cdc87618da
2 changed files with 2 additions and 3 deletions
|
@ -290,14 +290,13 @@ static void uemis_event(struct dive *dive, struct divecomputer *dc, struct sampl
|
|||
/*
|
||||
* parse uemis base64 data blob into struct dive
|
||||
*/
|
||||
void uemis_parse_divelog_binary(char *base64, void *datap)
|
||||
void uemis_parse_divelog_binary(char *base64, struct dive *dive)
|
||||
{
|
||||
int datalen;
|
||||
int i;
|
||||
uint8_t *data;
|
||||
struct sample *sample = NULL;
|
||||
uemis_sample_t *u_sample;
|
||||
struct dive *dive = datap;
|
||||
struct divecomputer *dc = &dive->dc;
|
||||
int template, gasoffset;
|
||||
uint8_t active = 0;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void uemis_parse_divelog_binary(char *base64, void *divep);
|
||||
void uemis_parse_divelog_binary(char *base64, struct dive *dive);
|
||||
int uemis_get_weight_unit(uint32_t diveid);
|
||||
void uemis_mark_divelocation(int diveid, int divespot, struct dive_site *ds);
|
||||
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude);
|
||||
|
|
Loading…
Reference in a new issue