mirror of https://github.com/acidanthera/audk.git
RedfishPkg: get rid of unused definitions from RedfishCrtLib.h
It seems that initial implementation of this header file is based on CrtLibSupport.h from CryptoPkg. But uid, euid, gid, egid and sa_family_t sre not used in RedfishPkg. So remove them. Also take "true" and "false" definition from MdePkg's LibFdtSupport.h header file, that also seems based on a header mentioned above. Cc: Nickle Wang <nicklew@nvidia.com> Cc: Igor Kulchytskyy <igork@ami.com> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com> Reviewed-by: Abner Chang <abner.chang@amd.com>
This commit is contained in:
parent
4fdd5165c1
commit
0f66c2e687
|
@ -69,20 +69,17 @@
|
||||||
//
|
//
|
||||||
// Basic types mapping
|
// Basic types mapping
|
||||||
//
|
//
|
||||||
typedef UINTN size_t;
|
typedef UINTN size_t;
|
||||||
typedef INTN ssize_t;
|
typedef INTN ssize_t;
|
||||||
typedef INT32 time_t;
|
typedef INT32 time_t;
|
||||||
typedef UINT8 __uint8_t;
|
typedef INT32 int32_t;
|
||||||
typedef UINT8 sa_family_t;
|
typedef UINT32 uint32_t;
|
||||||
typedef UINT32 uid_t;
|
typedef UINT16 uint16_t;
|
||||||
typedef UINT32 gid_t;
|
typedef UINT8 uint8_t;
|
||||||
typedef INT32 int32_t;
|
typedef BOOLEAN bool;
|
||||||
typedef UINT32 uint32_t;
|
|
||||||
typedef UINT16 uint16_t;
|
#define true (1 == 1)
|
||||||
typedef UINT8 uint8_t;
|
#define false (1 == 0)
|
||||||
typedef enum {
|
|
||||||
false, true
|
|
||||||
} bool;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// File operations are not required for EFI building,
|
// File operations are not required for EFI building,
|
||||||
|
@ -343,26 +340,6 @@ fgetc (
|
||||||
FILE *_File
|
FILE *_File
|
||||||
);
|
);
|
||||||
|
|
||||||
uid_t
|
|
||||||
getuid (
|
|
||||||
void
|
|
||||||
);
|
|
||||||
|
|
||||||
uid_t
|
|
||||||
geteuid (
|
|
||||||
void
|
|
||||||
);
|
|
||||||
|
|
||||||
gid_t
|
|
||||||
getgid (
|
|
||||||
void
|
|
||||||
);
|
|
||||||
|
|
||||||
gid_t
|
|
||||||
getegid (
|
|
||||||
void
|
|
||||||
);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
qsort (
|
qsort (
|
||||||
void *,
|
void *,
|
||||||
|
|
Loading…
Reference in New Issue