Fix coding style issues for Tcp4Dxe driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6774 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -344,6 +344,14 @@ typedef struct _SOCK_INIT_DATA {
|
||||
|
||||
EFI_HANDLE DriverBinding; // the driver binding handle
|
||||
} SOCK_INIT_DATA;
|
||||
|
||||
//
|
||||
//the union type of TCP and UDP protocol
|
||||
//
|
||||
typedef union {
|
||||
EFI_TCP4_PROTOCOL TcpProtocol;
|
||||
EFI_UDP4_PROTOCOL UdpProtocol;
|
||||
} NET_PROTOCOL;
|
||||
//
|
||||
// the socket structure representing a network service access point
|
||||
//
|
||||
@@ -391,10 +399,7 @@ struct _SOCKET {
|
||||
//
|
||||
SOCK_PROTO_HANDLER ProtoHandler; // the request handler of protocol
|
||||
UINT8 ProtoReserved[PROTO_RESERVED_LEN]; // Data fields reserved for protocol
|
||||
union {
|
||||
EFI_TCP4_PROTOCOL TcpProtocol;
|
||||
EFI_UDP4_PROTOCOL UdpProtocol;
|
||||
} NetProtocol;
|
||||
NET_PROTOCOL NetProtocol;
|
||||
|
||||
//
|
||||
// Callbacks.
|
||||
|
Reference in New Issue
Block a user