aboutsummaryrefslogtreecommitdiffstats
path: root/core/parse.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-14 15:09:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-14 15:55:07 -0400
commitb01cba13c5dc81ed7367ae79b6af361e6abc0da1 (patch)
treef352a825e58d92f2c417d94f70ad823b23ad99cb /core/parse.c
parent8ddbe50d2921595e20947a1c8c828a286117c543 (diff)
downloadsubsurface-b01cba13c5dc81ed7367ae79b6af361e6abc0da1.tar.gz
Parser: remove global variable dive_id
This variable was only used in the divinglog_dive() function. There, it was initialized right at the beginning and therefore there seems to be no point in conserving its value across function-calls. Make the variable local and remove the global version. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/parse.c')
-rw-r--r--core/parse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/parse.c b/core/parse.c
index c8f3ae89a..a444dc441 100644
--- a/core/parse.c
+++ b/core/parse.c
@@ -15,7 +15,6 @@
#include "gettext.h"
int metric = 1;
-int diveid = -1;
event_allocation_t event_allocation = { .event.deleted = 1 };
struct parser_settings cur_settings;
@@ -48,7 +47,6 @@ struct divecomputer *get_dc(void)
return cur_dc ?: &cur_dive->dc;
}
-
/* Trim a character string by removing leading and trailing white space characters.
* Parameter: a pointer to a null-terminated character string (buffer);
* Return value: length of the trimmed string, excluding the terminal 0x0 byte