mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 19:41:30 +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
93b151a75f
commit
e5d76593fc
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
|
* 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 datalen;
|
||||||
int i;
|
int i;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
struct sample *sample = NULL;
|
struct sample *sample = NULL;
|
||||||
uemis_sample_t *u_sample;
|
uemis_sample_t *u_sample;
|
||||||
struct dive *dive = datap;
|
|
||||||
struct divecomputer *dc = &dive->dc;
|
struct divecomputer *dc = &dive->dc;
|
||||||
int template, gasoffset;
|
int template, gasoffset;
|
||||||
uint8_t active = 0;
|
uint8_t active = 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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);
|
int uemis_get_weight_unit(uint32_t diveid);
|
||||||
void uemis_mark_divelocation(int diveid, int divespot, struct dive_site *ds);
|
void uemis_mark_divelocation(int diveid, int divespot, struct dive_site *ds);
|
||||||
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude);
|
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude);
|
||||||
|
|
Loading…
Reference in a new issue