mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
* commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise operations.
This commit is contained in:
1 parent
c6f3b249e4
commit
cd2851b3dd
2 files changed
+5
-2
No files matched your search
@@ -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>
|
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Add missing dollar.
|
* configure.ac: Add missing dollar.
|
||||||
|
|||||||
@@ -349,8 +349,6 @@ grub_cmd_xnu_uuid (grub_command_t cmd __attribute__ ((unused)),
|
|||||||
grub_memcpy (hashme.prefix, hash_prefix, sizeof (hashme.prefix));
|
grub_memcpy (hashme.prefix, hash_prefix, sizeof (hashme.prefix));
|
||||||
|
|
||||||
md5 ((char *) &hashme, sizeof (hashme), (char *) xnu_uuid);
|
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,
|
grub_sprintf (uuid_string,
|
||||||
"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
"%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],
|
(unsigned int) xnu_uuid[0], (unsigned int) xnu_uuid[1],
|
||||||
|
|||||||
Reference in new issue
Block a user