From 7f49e43d767211a654d26240b5a33397153265ef Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 14 Oct 2018 20:01:20 +0200 Subject: Cleanup: make xml_parsing_units local to parse-xml.c xml_parsing_units stores the units of the currently parsed XML file. It is not used outside of parse-xml.c. Therefore, make it of static linkage and remove the declaration from dive.h. Signed-off-by: Berthold Stoeger --- core/dive.h | 1 - core/parse-xml.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index ef69bc934..659def142 100644 --- a/core/dive.h +++ b/core/dive.h @@ -427,7 +427,6 @@ extern void unregister_trip(dive_trip_t *trip); extern void free_trip(dive_trip_t *trip); extern const struct units SI_units, IMPERIAL_units; -extern struct units xml_parsing_units; extern const struct units *get_units(void); extern int run_survey, verbose, quit, force_root; diff --git a/core/parse-xml.c b/core/parse-xml.c index 2577d6380..5c6d8f94f 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -35,7 +35,7 @@ int last_xml_version = -1; static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params); -struct units xml_parsing_units; +static struct units xml_parsing_units; const struct units SI_units = SI_UNITS; const struct units IMPERIAL_units = IMPERIAL_UNITS; -- cgit v1.2.3-70-g09d2