diff options
author | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-10 03:30:41 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-10 03:30:41 +0000 |
commit | 826f9005c21d61845f64f779bc86c4ca15caa1e6 (patch) | |
tree | 0a3e95f5bdac23a8342ce184b1a8af97b691125f /StdLib/BsdSocketLib/getaddrinfo.c | |
parent | f6e5cdd5cfa100e777db38e5f7b26b7ffcf41330 (diff) | |
download | edk2-platforms-826f9005c21d61845f64f779bc86c4ca15caa1e6.tar.xz |
Fix some errors detected by the GCC 4.4 compiler.
Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13006 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/BsdSocketLib/getaddrinfo.c')
-rw-r--r-- | StdLib/BsdSocketLib/getaddrinfo.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/StdLib/BsdSocketLib/getaddrinfo.c b/StdLib/BsdSocketLib/getaddrinfo.c index 11489421d8..c8ed7848a4 100644 --- a/StdLib/BsdSocketLib/getaddrinfo.c +++ b/StdLib/BsdSocketLib/getaddrinfo.c @@ -556,6 +556,13 @@ getaddrinfo(const char *hostname, const char *servname, return error;
}
+static const ns_dtab dtab[] = {
+ NS_FILES_CB(_files_getaddrinfo, NULL)
+ { NSSRC_DNS, _dns_getaddrinfo, NULL }, /* force -DHESIOD */
+ NS_NIS_CB(_yp_getaddrinfo, NULL)
+ NS_NULL_CB
+};
+
/*
* FQDN hostname, DNS lookup
*/
@@ -566,12 +573,6 @@ explore_fqdn(const struct addrinfo *pai, const char *hostname, struct addrinfo *result;
struct addrinfo *cur;
int error = 0;
- static const ns_dtab dtab[] = {
- NS_FILES_CB(_files_getaddrinfo, NULL)
- { NSSRC_DNS, _dns_getaddrinfo, NULL }, /* force -DHESIOD */
- NS_NIS_CB(_yp_getaddrinfo, NULL)
- NS_NULL_CB
- };
_DIAGASSERT(pai != NULL);
/* hostname may be NULL */
|