]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Thu, 15 Oct 2009 12:26:30 +0000 (12:26 +0000)
committerphcoder <phcoder@localhost>
Thu, 15 Oct 2009 12:26:30 +0000 (12:26 +0000)
* commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
operations.

ChangeLog
commands/xnu_uuid.c

index 8ad2c03629203a81352925d6e5001542d20b6afe..78a02e5920f87aacb971b30546f88636988a5540 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
+       operations.
+
 2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: Add missing dollar.
index d5c272d03d99b98fa2f9df1d091776041ca2c09a..06e88e5608352c7e81fc940cc7a8922dad83cd2f 100644 (file)
@@ -349,8 +349,6 @@ grub_cmd_xnu_uuid (grub_command_t cmd __attribute__ ((unused)),
   grub_memcpy (hashme.prefix, hash_prefix, sizeof (hashme.prefix));
 
   md5 ((char *) &hashme, sizeof (hashme), (char *) xnu_uuid);
-  xnu_uuid[6] = (xnu_uuid[6] & 0xf) | 0x30;
-  xnu_uuid[8] = (xnu_uuid[8] & 0x3f) | 0x80;
   grub_sprintf (uuid_string,
                "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
                (unsigned int) xnu_uuid[0], (unsigned int) xnu_uuid[1],