From 1f23ecc3000b14c02cbaf47a819ed89ac93ec12e Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 13 Apr 2015 19:55:25 -0400 Subject: Make lib/ build right with the cflags it should be using... ... but isn't. Signed-off-by: Peter Jones --- lib/guid.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lib/guid.c') diff --git a/lib/guid.c b/lib/guid.c index c97a7ca8..5f5a03ff 100644 --- a/lib/guid.c +++ b/lib/guid.c @@ -6,31 +6,6 @@ #include -#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 }}; -- cgit v1.2.3