mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Fix some benign compiler warnings.
This commit is contained in:
@@ -1279,13 +1279,12 @@ int LUKS2_config_get_requirements(struct crypt_device *cd, struct luks2_hdr *hdr
|
||||
|
||||
int LUKS2_config_set_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint32_t reqs)
|
||||
{
|
||||
json_object *jobj_config, *jobj_requirements, *jobj_mandatory, *jobj;
|
||||
int i, r = -EINVAL;
|
||||
|
||||
if (!hdr)
|
||||
return -EINVAL;
|
||||
|
||||
json_object *jobj_config, *jobj_requirements, *jobj_mandatory, *jobj;
|
||||
|
||||
jobj_mandatory = json_object_new_array();
|
||||
if (!jobj_mandatory)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -352,7 +352,7 @@ void tools_time_progress(uint64_t device_size, uint64_t bytes,
|
||||
unsigned long long mbytes, eta;
|
||||
double tdiff, mib, frequency;
|
||||
int final = (bytes == device_size);
|
||||
char *eol;
|
||||
const char *eol;
|
||||
|
||||
if (opt_batch_mode)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user