Permalink
Browse files

renamed getplatform() to ares__getplatform() to avoid namespace pollu…

…tion
  • Loading branch information...
1 parent e49ce8f commit 5e5c0132e6469a7eaa580ebc156fd87e650ee4cb @yangtse yangtse committed Mar 25, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 ares_gethostbyaddr.c
  2. +1 −1 ares_gethostbyname.c
  3. +1 −1 ares_init.c
  4. +1 −1 ares_platform.c
  5. +1 −1 ares_platform.h
View
2 ares_gethostbyaddr.c
@@ -191,7 +191,7 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
PATH_HOSTS[0] = '\0';
- platform = getplatform();
+ platform = ares__getplatform();
if (platform == WIN_NT) {
char tmp[MAX_PATH];
View
2 ares_gethostbyname.c
@@ -349,7 +349,7 @@ static int file_lookup(const char *name, int family, struct hostent **host)
PATH_HOSTS[0] = '\0';
- platform = getplatform();
+ platform = ares__getplatform();
if (platform == WIN_NT) {
char tmp[MAX_PATH];
View
2 ares_init.c
@@ -717,7 +717,7 @@ DhcpNameServer
goto okay;
}
- platform = getplatform();
+ platform = ares__getplatform();
if (platform == WIN_NT)
{
View
2 ares_platform.c
@@ -25,7 +25,7 @@
#define V_PLATFORM_WIN32_NT 2
#define V_PLATFORM_WIN32_CE 3
-win_platform getplatform(void)
+win_platform ares__getplatform(void)
{
OSVERSIONINFOEX OsvEx;
View
2 ares_platform.h
@@ -29,7 +29,7 @@ typedef enum {
WIN_CE
} win_platform;
-extern win_platform getplatform(void);
+win_platform ares__getplatform(void);
#endif

0 comments on commit 5e5c013

Please sign in to comment.