mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Uemis downloader: minor coding style changes
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
07a2514d9f
commit
ca6f2c238a
1 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@
|
|||
#define UEMIS_CHECK_SINGLE_DIVE 3
|
||||
|
||||
#if UEMIS_DEBUG
|
||||
const char *home, * user, *d_time;
|
||||
const char *home, *user, *d_time;
|
||||
static int debug_round = 0;
|
||||
#define debugfile stderr
|
||||
#endif
|
||||
|
@ -717,7 +717,7 @@ static void parse_tag(struct dive *dive, char *tag, char *val)
|
|||
} else if (!strcmp(tag, "f32Weight")) {
|
||||
uemis_get_weight(val, &dive->weightsystem[0], dive->dc.diveid);
|
||||
} else if (!strcmp(tag, "notes")) {
|
||||
uemis_add_string(val, &dive->notes , " ");
|
||||
uemis_add_string(val, &dive->notes, " ");
|
||||
} else if (!strcmp(tag, "u8DiveSuit")) {
|
||||
if (*suit[atoi(val)])
|
||||
uemis_add_string(translate("gettextFromC", suit[atoi(val)]), &dive->suit, " ");
|
||||
|
@ -1086,7 +1086,7 @@ static void get_uemis_divespot(const char *mountpath, int divespot_id, struct di
|
|||
}
|
||||
}
|
||||
|
||||
static bool get_matching_dive(int idx, char *newmax, int *uemis_mem_status, struct device_data_t *data, const char* mountpath, const char deviceidnr)
|
||||
static bool get_matching_dive(int idx, char *newmax, int *uemis_mem_status, struct device_data_t *data, const char *mountpath, const char deviceidnr)
|
||||
{
|
||||
struct dive *dive = data->download_table->dives[idx];
|
||||
char log_file_no_to_find[20];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue