diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-26 21:28:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-26 21:28:41 +0200 |
commit | 5b1852a0214cec5b3b6ed5fd962276b94b369e56 (patch) | |
tree | c27a541a8c813e70e10518f5e46aeafba8a32b92 /package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c | |
parent | 6bf65192a05ccee7e50ef97eacdab33c2c5e011b (diff) |
grub: add needed stuff for static build and busybox grep
Diffstat (limited to 'package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c')
-rw-r--r-- | package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c new file mode 100644 index 000000000..88e9e761c --- /dev/null +++ b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c @@ -0,0 +1,20 @@ +--- grub-1.98.orig/lib/libgcrypt-grub/cipher/twofish.c 2010-03-06 21:52:26.000000000 +0100 ++++ grub-1.98/lib/libgcrypt-grub/cipher/twofish.c 2010-06-26 20:30:05.671278033 +0200 +@@ -932,7 +932,7 @@ main() + twofish_encrypt (&ctx, buffer[1], buffer[1]); + } + } +- encrypt_msg = memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ? ++ encrypt_msg = grub_memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ? + "encryption failure!\n" : "encryption OK!\n"; + + /* Decryption test. */ +@@ -954,7 +954,7 @@ main() + /* Stop the timer, and print results. */ + timer = clock () - timer; + printf (encrypt_msg); +- printf (memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ? ++ printf (grub_memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ? + "decryption failure!\n" : "decryption OK!\n"); + printf ("elapsed time: %.1f s.\n", (float) timer / CLOCKS_PER_SEC); + |