Be explicit about types stored in config file
This commit is contained in:
parent
b838046246
commit
7b56706c1a
@ -67,10 +67,10 @@ Data CryConfig::save() const {
|
|||||||
pt.put<uint64_t>("cryfs.blocksizeBytes", _blocksizeBytes);
|
pt.put<uint64_t>("cryfs.blocksizeBytes", _blocksizeBytes);
|
||||||
pt.put<string>("cryfs.filesystemId", _filesystemId.ToString());
|
pt.put<string>("cryfs.filesystemId", _filesystemId.ToString());
|
||||||
if (_exclusiveClientId != none) {
|
if (_exclusiveClientId != none) {
|
||||||
pt.put("cryfs.exclusiveClientId", *_exclusiveClientId);
|
pt.put<uint32_t>("cryfs.exclusiveClientId", *_exclusiveClientId);
|
||||||
}
|
}
|
||||||
#ifndef CRYFS_NO_COMPATIBILITY
|
#ifndef CRYFS_NO_COMPATIBILITY
|
||||||
pt.put("cryfs.migrations.hasVersionNumbers", _hasVersionNumbers);
|
pt.put<bool>("cryfs.migrations.hasVersionNumbers", _hasVersionNumbers);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
stringstream stream;
|
stringstream stream;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user