diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-18 13:14:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-18 13:16:57 -0700 |
commit | ca6f2c238aec0fd9dc0b12fad2df4028cf097fbb (patch) | |
tree | 336164e22935be3afc6f906a8f967691d0964233 /uemis-downloader.c | |
parent | 07a2514d9f1910ed96316c7c46956c846f6a6d7d (diff) | |
download | subsurface-ca6f2c238aec0fd9dc0b12fad2df4028cf097fbb.tar.gz |
Uemis downloader: minor coding style changes
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 422185393..bc3528d72 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -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]; @@ -1273,7 +1273,7 @@ const char *do_uemis_import(device_data_t *data) * dive_to_read = the dive deatils entry that need to be read using the object_id * logFileNoToFind = map the logfilenr of the dive details with the object_id = diveid from the get dive logs */ for (int i = match_dive_and_log; i < data->download_table->nr; i++) { - bool success = get_matching_dive(i, newmax, &uemis_mem_status, data, mountpath, deviceidnr); + bool success = get_matching_dive(i, newmax, &uemis_mem_status, data, mountpath, deviceidnr); if (!success) break; if (import_thread_cancelled) |