diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 03:33:51 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 03:33:51 +0000 |
commit | 84b5c78e89686879f799a4cd095eeef83ff7cf34 (patch) | |
tree | 3cc8d6eed389d20c3ef707958cd22216b71ebd82 /MdeModulePkg/Include/Library | |
parent | f490a61d79cdbb3325f2f273e588eae54168fc42 (diff) | |
download | edk2-platforms-84b5c78e89686879f799a4cd095eeef83ff7cf34.tar.xz |
Make MdeModulePkg GCC clean.
It also pass ICC+IPF and MYTOOLS+EBC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3711 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include/Library')
-rw-r--r-- | MdeModulePkg/Include/Library/NetLib.h | 4 | ||||
-rw-r--r-- | MdeModulePkg/Include/Library/UdpIoLib.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h index fe240442ae..8787f6cf7a 100644 --- a/MdeModulePkg/Include/Library/NetLib.h +++ b/MdeModulePkg/Include/Library/NetLib.h @@ -188,7 +188,7 @@ typedef struct { //
#define EFI_IP4(EfiIpAddr) (*(IP4_ADDR *) ((EfiIpAddr).Addr))
#define EFI_NTOHL(EfiIp) (NTOHL (EFI_IP4 ((EfiIp))))
-#define EFI_IP4_EQUAL(Ip1, Ip2) (NetCompareMem (&(Ip1), &(Ip2), sizeof (EFI_IPv4_ADDRESS)) == 0)
+#define EFI_IP4_EQUAL(Ip1, Ip2) (NetCompareMem ((Ip1), (Ip2), sizeof (EFI_IPv4_ADDRESS)) == 0)
INTN
NetGetMaskLength (
@@ -249,7 +249,7 @@ extern EFI_IPv4_ADDRESS mZeroIp4Addr; #define NET_MIN(a, b) ((a) < (b) ? (a) : (b)) #define NET_MAX(a, b) ((a) > (b) ? (a) : (b)) -#define NET_RANDOM(Seed) (((Seed) * 1103515245L + 12345) % 4294967295L) +#define NET_RANDOM(Seed) ((UINT32) ((UINT32) (Seed) * 1103515245UL + 12345) % 4294967295UL) UINT32 diff --git a/MdeModulePkg/Include/Library/UdpIoLib.h b/MdeModulePkg/Include/Library/UdpIoLib.h index 3f49cc9209..c6059f18e3 100644 --- a/MdeModulePkg/Include/Library/UdpIoLib.h +++ b/MdeModulePkg/Include/Library/UdpIoLib.h @@ -99,7 +99,7 @@ typedef struct { EFI_UDP4_TRANSMIT_DATA UdpTxData; } UDP_TX_TOKEN; -typedef struct _UDP_IO_PORT { +struct _UDP_IO_PORT { UINT32 Signature; NET_LIST_ENTRY Link; INTN RefCnt; |