mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix typos.
This commit is contained in:
committed by
Milan Broz
parent
444eac3597
commit
a97de38b6b
@@ -182,7 +182,7 @@ static void hdr_to_disk(struct luks2_hdr *hdr,
|
||||
}
|
||||
|
||||
/*
|
||||
* Sanity checks before checkum is validated
|
||||
* Sanity checks before checksum is validated
|
||||
*/
|
||||
static int hdr_disk_sanity_check_pre(struct luks2_hdr_disk *hdr,
|
||||
size_t *hdr_json_size, int secondary,
|
||||
@@ -324,7 +324,7 @@ static int hdr_write_disk(struct device *device, struct luks2_hdr *hdr,
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate checksum and write header with checkum.
|
||||
* Calculate checksum and write header with checksum.
|
||||
*/
|
||||
r = hdr_checksum_calculate(hdr_disk.checksum_alg, &hdr_disk,
|
||||
json_area, hdr_json_len);
|
||||
@@ -504,7 +504,7 @@ static json_object *parse_and_validate_json(const char *json_area, int length)
|
||||
if (!jobj)
|
||||
return NULL;
|
||||
|
||||
/* successfull parse_json_len must not return offset <= 0 */
|
||||
/* successful parse_json_len must not return offset <= 0 */
|
||||
assert(offset > 0);
|
||||
|
||||
r = validate_json_area(json_area, offset, length);
|
||||
|
||||
@@ -844,7 +844,7 @@ static void LUKS2_hdr_free_unused_objects(struct crypt_device *cd, struct luks2_
|
||||
|
||||
int LUKS2_hdr_write(struct crypt_device *cd, struct luks2_hdr *hdr)
|
||||
{
|
||||
/* FIXME: we risk to hide future intenal implementation bugs with this */
|
||||
/* FIXME: we risk to hide future internal implementation bugs with this */
|
||||
LUKS2_hdr_free_unused_objects(cd, hdr);
|
||||
|
||||
if (LUKS2_hdr_validate(hdr->jobj))
|
||||
@@ -1317,7 +1317,7 @@ int LUKS2_config_set_requirements(struct crypt_device *cd, struct luks2_hdr *hdr
|
||||
|
||||
/* any remaining bit in requirements is unknown therefore illegal */
|
||||
if (reqs) {
|
||||
log_dbg("Illegal requiremnt flag(s) requested");
|
||||
log_dbg("Illegal requirement flag(s) requested");
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user