summaryrefslogtreecommitdiff
path: root/src/net/dns.c~
diff options
context:
space:
mode:
authorTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-22 22:51:24 +0200
committerTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-22 22:51:24 +0200
commit44daf03024fbf7cbffa10349044786f6ab784821 (patch)
treefe311eb22e2d853dfc18fde1a9e55d21815f4f82 /src/net/dns.c~
parente12753d2ec9db83ec08bb9db63902a82fb245cdd (diff)
Revert "X"
This reverts commit e12753d2ec9db83ec08bb9db63902a82fb245cdd.
Diffstat (limited to 'src/net/dns.c~')
-rw-r--r--src/net/dns.c~27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/net/dns.c~ b/src/net/dns.c~
deleted file mode 100644
index 84c917a..0000000
--- a/src/net/dns.c~
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef __WIN32__
-# include <sys/socket.h>
-# include <netinet/in.h>
-# include <arpa/inet.h>
-# include <netdb.h>
-#else
-# include <windows.h>
-# include <wininet.h>
-#endif
-
-#include <string.h>
-
-#include "main.h"
-
-char* getIPFormDNS(char *domain)
-{
- struct hostent *host;
-
- host = gethostbyname(domain);
-
- if( host == NULL || host->h_addr_list[0] == NULL )
- {
- return NULL;
- }
-
- return strdup( inet_ntoa( * ( (struct in_addr *) host->h_addr_list[0] ) ) );
-}