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
8fec9bc49b
commit
f616538f52
@ -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…
x
Reference in New Issue
Block a user