summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-04-17 11:34:21 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-17 08:37:31 -0700
commit95984628302bee02af3e82ac305b5e3bb4842533 (patch)
tree56b104b93b6786e4314e88d4a9164d4eaae67178 /save-xml.c
parentf14c14c383763c73de1a6ec681b017517235f2f6 (diff)
downloadsubsurface-95984628302bee02af3e82ac305b5e3bb4842533.tar.gz
Removed the globals 'userid' and 'save_userid_local' variables
This is a preferences setting, it should belong to the preferences structure. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c
index 0aed92094..4ad03dbf6 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -508,8 +508,8 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
put_format(b, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION);
- if (save_userid_local)
- put_format(b, " <userid>%s</userid>\n", userid);
+ if (prefs.save_userid_local)
+ put_format(b, " <userid>%s</userid>\n", prefs.userid);
/* save the dive computer nicknames, if any */
call_for_each_dc(b, save_one_device);