0006-grub-core-disk-cryptodisk.c-Point-to-const-char.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From fd72a029d64e0ee9552e4433387ee01f3cb05592 Mon Sep 17 00:00:00 2001
  2. From: Klemens Nanni <contact@autoboot.org>
  3. Date: Tue, 15 Sep 2015 16:00:03 +0200
  4. Subject: [PATCH 07/10] grub-core/disk/cryptodisk.c: Point to const char
  5. ---
  6. grub-core/disk/cryptodisk.c | 2 +-
  7. include/grub/cryptodisk.h | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c
  10. index 5430b2e..633edb2 100644
  11. --- a/grub-core/disk/cryptodisk.c
  12. +++ b/grub-core/disk/cryptodisk.c
  13. @@ -115,7 +115,7 @@ gf_mul_be (grub_uint8_t *o, const grub_uint8_t *a, const grub_uint8_t *b)
  14. }
  15. int
  16. -grub_cryptodisk_uuidcmp(char *uuid_a, char *uuid_b)
  17. +grub_cryptodisk_uuidcmp(const char *uuid_a, const char *uuid_b)
  18. {
  19. while ((*uuid_a != '\0') && (*uuid_b != '\0'))
  20. {
  21. diff --git a/include/grub/cryptodisk.h b/include/grub/cryptodisk.h
  22. index 01c0269..cd6a545 100644
  23. --- a/include/grub/cryptodisk.h
  24. +++ b/include/grub/cryptodisk.h
  25. @@ -169,5 +169,5 @@ grub_cryptodisk_t grub_cryptodisk_create (grub_disk_t disk, char *uuid,
  26. char *ciphername, char *ciphermode, char *digest);
  27. int
  28. -grub_cryptodisk_uuidcmp(char *uuid_a, char *uuid_b);
  29. +grub_cryptodisk_uuidcmp(const char *uuid_a, const char *uuid_b);
  30. #endif
  31. --
  32. 1.9.1