summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-18 04:01:20 +0000
committerZeev Suraski <zeev@php.net>1999-12-18 04:01:20 +0000
commit3ee4e65c95fa8eb5366569a22ffd6e09ce9741f1 (patch)
tree20bbcd96e0f6c1483c87a00273bcdc1ec94a097a /ext/standard/dns.c
parent8a581c3536e1c4fab7ecfa4e1c044d3e5ebc5ab2 (diff)
downloadphp-git-3ee4e65c95fa8eb5366569a22ffd6e09ce9741f1.tar.gz
More php3_ annihilation
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index d5fc032ac0..f8ca8f2813 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -48,8 +48,8 @@
#include "dns.h"
-char *_php3_gethostbyaddr(char *ip);
-char *_php3_gethostbyname(char *name);
+char *php_gethostbyaddr(char *ip);
+char *php_gethostbyname(char *name);
/* {{{ proto string gethostbyaddr(string ip_address)
Get the Internet host name corresponding to a given IP address */
@@ -62,14 +62,14 @@ PHP_FUNCTION(gethostbyaddr)
}
convert_to_string_ex(arg);
- return_value->value.str.val = _php3_gethostbyaddr((*arg)->value.str.val);
+ return_value->value.str.val = php_gethostbyaddr((*arg)->value.str.val);
return_value->value.str.len = strlen(return_value->value.str.val);
return_value->type = IS_STRING;
}
/* }}} */
-char *_php3_gethostbyaddr(char *ip)
+char *php_gethostbyaddr(char *ip)
{
unsigned long addr;
struct hostent *hp;
@@ -101,7 +101,7 @@ PHP_FUNCTION(gethostbyname)
}
convert_to_string_ex(arg);
- return_value->value.str.val = _php3_gethostbyname((*arg)->value.str.val);
+ return_value->value.str.val = php_gethostbyname((*arg)->value.str.val);
return_value->value.str.len = strlen(return_value->value.str.val);
return_value->type = IS_STRING;
}
@@ -142,7 +142,7 @@ PHP_FUNCTION(gethostbynamel)
}
/* }}} */
-char *_php3_gethostbyname(char *name)
+char *php_gethostbyname(char *name)
{
struct hostent *hp;
struct in_addr in;