]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/crypto.h: Don't discard const attribute.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 12:36:42 +0000 (13:36 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 12:36:42 +0000 (13:36 +0100)
ChangeLog
include/grub/crypto.h

index 5fa10f2136dd94fc733bf80225f5b26a2a623fe2..694a26114c34d075487051856422decf7675b625 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * include/grub/crypto.h: Don't discard const attribute.
+
 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
index 3739c6a4bd7a17434daaf913fb57732d113a2229..8055d6d9f79baaaec28b1f3e9073db208df3bc5d 100644 (file)
@@ -293,9 +293,9 @@ grub_crypto_xor (void *out, const void *in1, const void *in2, grub_size_t size)
     }
   while (size >= sizeof (grub_uint64_t))
     {
-      *(grub_uint64_t *) (void *) outptr
-       = (*(grub_uint64_t *) (void *) in1ptr
-          ^ *(grub_uint64_t *) (void *) in2ptr);
+      *(grub_uint64_t *) outptr
+       = (*(const grub_uint64_t *) in1ptr
+          ^ *(const grub_uint64_t *) in2ptr);
       in1ptr += sizeof (grub_uint64_t);
       in2ptr += sizeof (grub_uint64_t);
       outptr += sizeof (grub_uint64_t);
@@ -320,7 +320,7 @@ grub_crypto_ecb_encrypt (grub_crypto_cipher_handle_t cipher,
                         void *out, const void *in, grub_size_t size);
 gcry_err_code_t
 grub_crypto_cbc_encrypt (grub_crypto_cipher_handle_t cipher,
-                        void *out, void *in, grub_size_t size,
+                        void *out, const void *in, grub_size_t size,
                         void *iv_in);
 gcry_err_code_t
 grub_crypto_cbc_decrypt (grub_crypto_cipher_handle_t cipher,