mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f14c14c383
commit
9598462830
9 changed files with 32 additions and 32 deletions
|
@ -681,8 +681,8 @@ static struct dir *mktree(struct dir *dir, const char *fmt, ...)
|
|||
static void save_userid(void *_b)
|
||||
{
|
||||
struct membuffer *b = _b;
|
||||
if (save_userid_local)
|
||||
put_format(b, "userid %30s", userid);
|
||||
if (prefs.save_userid_local)
|
||||
put_format(b, "userid %30s", prefs.userid);
|
||||
}
|
||||
|
||||
static void save_one_device(void *_b, const char *model, uint32_t deviceid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue