diff options
| author | Peter Jones <pjones@redhat.com> | 2015-04-13 19:55:25 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-04-13 19:55:25 -0400 |
| commit | 1f23ecc3000b14c02cbaf47a819ed89ac93ec12e (patch) | |
| tree | eb2616cc6b941d7d2688554d88e2fbe7e0447c13 /lib/guid.c | |
| parent | 0ea5b3e3b7a905aac7668029348d895509de20e6 (diff) | |
| download | efi-boot-shim-1f23ecc3000b14c02cbaf47a819ed89ac93ec12e.tar.gz efi-boot-shim-1f23ecc3000b14c02cbaf47a819ed89ac93ec12e.zip | |
Make lib/ build right with the cflags it should be using...
... but isn't.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/guid.c')
| -rw-r--r-- | lib/guid.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -6,31 +6,6 @@ #include <guid.h> -#ifndef BUILD_EFI -/* EFI has %g for this, so it's only needed in platform c */ -const char *guid_to_str(EFI_GUID *guid) -{ - static char str[256]; - - sprintf(str, "%08x-%04hx-%04hx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx", - guid->Data1, guid->Data2, guid->Data3, - guid->Data4[0], guid->Data4[1], guid->Data4[2], - guid->Data4[3], guid->Data4[4], guid->Data4[5], - guid->Data4[6], guid->Data4[7]); - - return str; -} - -void str_to_guid(const char *str, EFI_GUID *guid) -{ - sscanf(str, "%8x-%4hx-%4hx-%2hhx%2hhx-%2hhx%2hhx%2hhx%2hhx%2hhx%2hhx", - &guid->Data1, &guid->Data2, &guid->Data3, - guid->Data4, guid->Data4 + 1, guid->Data4 + 2, - guid->Data4 + 3, guid->Data4 + 4, guid->Data4 + 5, - guid->Data4 + 6, guid->Data4 + 7); -} -#endif - /* all the necessary guids */ EFI_GUID GV_GUID = EFI_GLOBAL_VARIABLE; EFI_GUID SIG_DB = { 0xd719b2cb, 0x3d3a, 0x4596, {0xa3, 0xbc, 0xda, 0xd0, 0xe, 0x67, 0x65, 0x6f }}; |
