Fix GCC build breaks.

Fix case mismatch for includes of "Socket.h".  Original code was <socket.h> while file was Socket.h in the same directory as the .c file.
Add EFIAPI to function declarations so that they match the definition.
Remove "ineffective" statements from stub functions.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12076 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
darylm503 2011-08-02 20:52:36 +00:00
parent 05f9aa4026
commit eb222aea1d
4 changed files with 5 additions and 7 deletions

View File

@ -5,14 +5,14 @@
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#include <socket.h> #include "Socket.h"
/** /**

View File

@ -12,7 +12,7 @@
**/ **/
#include <socket.h> #include "Socket.h"
CONST EFI_GUID mEslRawServiceGuid = { CONST EFI_GUID mEslRawServiceGuid = {

View File

@ -112,13 +112,13 @@ typedef struct _DT_SERVICE DT_SERVICE; ///< Forward delcaration
typedef typedef
EFI_STATUS EFI_STATUS
(* PFN_SB_INITIALIZE) ( (EFIAPI * PFN_SB_INITIALIZE) (
DT_SERVICE * pService DT_SERVICE * pService
); );
typedef typedef
VOID VOID
(* PFN_SB_SHUTDOWN) ( (EFIAPI * PFN_SB_SHUTDOWN) (
DT_SERVICE * pService DT_SERVICE * pService
); );

View File

@ -21,7 +21,6 @@
struct passwd * struct passwd *
getpwuid (uid_t uid) getpwuid (uid_t uid)
{ {
uid;
errno = EPERM; errno = EPERM;
return NULL; return NULL;
} }
@ -35,7 +34,6 @@ char *getlogin (void)
struct passwd * struct passwd *
getpwnam (const char *name) getpwnam (const char *name)
{ {
name;
errno = EPERM; errno = EPERM;
return NULL; return NULL;
} }