[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] Retain constness of parameters.
From: |
John Lane |
Subject: |
[PATCH 6/7] Retain constness of parameters. |
Date: |
Wed, 14 Mar 2018 09:45:03 +0000 |
From: Denis Kasak <address@hidden>
---
grub-core/disk/cryptodisk.c | 2 +-
include/grub/cryptodisk.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c
index c442d3a34..6fc2c23aa 100644
--- a/grub-core/disk/cryptodisk.c
+++ b/grub-core/disk/cryptodisk.c
@@ -115,7 +115,7 @@ gf_mul_be (grub_uint8_t *o, const grub_uint8_t *a, const
grub_uint8_t *b)
}
int
-grub_cryptodisk_uuidcmp(char *uuid_a, char *uuid_b)
+grub_cryptodisk_uuidcmp(const char *uuid_a, const char *uuid_b)
{
while ((*uuid_a != '\0') && (*uuid_b != '\0'))
{
diff --git a/include/grub/cryptodisk.h b/include/grub/cryptodisk.h
index 01c02696e..cd6a54582 100644
--- a/include/grub/cryptodisk.h
+++ b/include/grub/cryptodisk.h
@@ -169,5 +169,5 @@ grub_cryptodisk_t grub_cryptodisk_create (grub_disk_t disk,
char *uuid,
char *ciphername, char *ciphermode, char
*digest);
int
-grub_cryptodisk_uuidcmp(char *uuid_a, char *uuid_b);
+grub_cryptodisk_uuidcmp(const char *uuid_a, const char *uuid_b);
#endif
--
2.16.2
- [PATCH 1/7] Cryptomount support LUKS detached header, John Lane, 2018/03/14
- [PATCH 5/7] Cryptomount support for hyphens in UUID, John Lane, 2018/03/14
- [PATCH 4/7] Cryptomount support plain dm-crypt, John Lane, 2018/03/14
- [PATCH 2/7] Cryptomount support key files, John Lane, 2018/03/14
- [PATCH 3/7] cryptomount luks allow multiple passphrase attempts, John Lane, 2018/03/14
- [PATCH 7/7] Add support for using a whole device as a keyfile, John Lane, 2018/03/14
- [PATCH 6/7] Retain constness of parameters.,
John Lane <=
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, Daniel Kiper, 2018/03/14
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, John Lane, 2018/03/14
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, Paul Menzel, 2018/03/21
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, Daniel Kiper, 2018/03/22
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, TJ, 2018/03/22
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, John Lane, 2018/03/26
- Re: [PATCH 1/7] Cryptomount support LUKS detached header, Daniel Kiper, 2018/03/26
Re: [PATCH 1/7] Cryptomount support LUKS detached header, TJ, 2018/03/17