]> granicus.if.org Git - php/commitdiff
renamed hostconnect() to php_hostconnect()
authorStig Venaas <venaas@php.net>
Tue, 5 Sep 2000 16:36:56 +0000 (16:36 +0000)
committerStig Venaas <venaas@php.net>
Tue, 5 Sep 2000 16:36:56 +0000 (16:36 +0000)
main/fopen_wrappers.c
main/network.c
main/php_network.h

index a9472b68bffb62aa12521e9d887185b55e301ab4..ee59e079336edaa3bbe51607a9dd8016aa628a2d 100644 (file)
@@ -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;
index 21976df353fed60c8c92b290347bcbbe2931d83a..efda5400ab726357ef3bfe1eff368d2ae5d0c97c 100644 (file)
@@ -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;
index ae605e0b66af6d466910e54accc60de9fef4eee0..7ce11c22ec5aec61c1d7348429e060dbbcc9b537 100644 (file)
@@ -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: