aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-01-05 10:11:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-01-05 10:11:41 +0000
commit4031104404c6ceed5e57134125dcdb6cac51c564 (patch)
tree18bd035e58e42180cf416d0d94d4726cd44d9d7f /lib/hostip.c
parent9f9cac7402f9f134be6f6d5b7fb830e9946a83d8 (diff)
Internal symbols that aren't static are now prefixed with 'Curl_'
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index f5f492dcf..cb7bc19a5 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -62,7 +62,7 @@
/* --- resolve name or IP-number --- */
-char *MakeIP(unsigned long num,char *addr, int addr_len)
+static char *MakeIP(unsigned long num,char *addr, int addr_len)
{
#if defined(HAVE_INET_NTOA) || defined(HAVE_INET_NTOA_R)
struct in_addr in;
@@ -83,14 +83,17 @@ char *MakeIP(unsigned long num,char *addr, int addr_len)
return (addr);
}
-/* The original code to this function was stolen from the Dancer source code,
- written by Bjorn Reese, it has since been patched and modified. */
+/* The original code to this function was once stolen from the Dancer source
+ code, written by Bjorn Reese, it has since been patched and modified
+ considerably. */
+
#ifndef INADDR_NONE
#define INADDR_NONE (unsigned long) ~0
#endif
-struct hostent *GetHost(struct UrlData *data,
- char *hostname,
- char **bufp)
+
+struct hostent *Curl_gethost(struct UrlData *data,
+ char *hostname,
+ char **bufp)
{
struct hostent *h = NULL;
unsigned long in;