From: Stig Venaas Date: Tue, 5 Sep 2000 16:36:56 +0000 (+0000) Subject: renamed hostconnect() to php_hostconnect() X-Git-Tag: php-4.0.3RC1~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24633f598727f5e98395ce9271ba56d274016650;p=php renamed hostconnect() to php_hostconnect() --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index a9472b68bf..ee59e07933 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -496,7 +496,7 @@ static FILE *php_fopen_url_wrap_http(const char *path, char *mode, int options, if (resource->port == 0) resource->port = 80; - *socketd = hostconnect(resource->host, resource->port, SOCK_STREAM, 0); + *socketd = php_hostconnect(resource->host, resource->port, SOCK_STREAM, 0); if (*socketd == -1) { SOCK_FCLOSE(*socketd); *socketd = 0; diff --git a/main/network.c b/main/network.c index 21976df353..efda5400ab 100644 --- a/main/network.c +++ b/main/network.c @@ -150,7 +150,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal) * port, returns the created socket on success, else returns -1. * timeout gives timeout in seconds, 0 means blocking mode. */ -int hostconnect(char *host, int port, int socktype, int timeout) +int php_hostconnect(char *host, int port, int socktype, int timeout) { int s; struct sockaddr **sal, **psal; diff --git a/main/php_network.h b/main/php_network.h index ae605e0b66..7ce11c22ec 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -17,7 +17,7 @@ */ /* $Id$ */ -int hostconnect(char *host, int port, int socktype, int timeout); +int php_hostconnect(char *host, int port, int socktype, int timeout); /* * Local variables: