FAQ
Commit: d9e4510224f022c5e720582d27aa0388569874bc
Author: Joe Watkins <krakjoe@php.net> Thu, 31 Mar 2016 12:51:00 +0100
Parents: 3b13206aa9d494af2cf4bde4047250405d5bbfd2
Branches: master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d9e4510224f022c5e720582d27aa0388569874bc

Log:
remove unused params || woops

Changed paths:
   M main/network.c


Diff:
diff --git a/main/network.c b/main/network.c
index 6d1d97b..e7f1b84 100644
--- a/main/network.c
+++ b/main/network.c
@@ -176,8 +176,6 @@ PHPAPI int php_network_getaddresses(const char *host, int socktype, struct socka
  # endif
   struct addrinfo hints, *res, *sai;
  #else
- char *tmp_host_buf = NULL;
- struct hostent tmp_host_info;
   struct hostent *host_info;
   struct in_addr in;
  #endif
@@ -251,7 +249,7 @@ PHPAPI int php_network_getaddresses(const char *host, int socktype, struct socka
     host_info = NULL;
     errno = E2BIG;
    } else {
- host_info = php_network_gethostbyname(host, &tmp_host_info, &tmp_host_buf);
+ host_info = php_network_gethostbyname(host);
    }
    if (host_info == NULL) {
     if (error_string) {
@@ -272,9 +270,6 @@ PHPAPI int php_network_getaddresses(const char *host, int socktype, struct socka
   ((struct sockaddr_in *)*sap)->sin_addr = in;
   sap++;
   n = 1;
- if (tmp_host_buf) {
- efree(tmp_host_buf);
- }
  #endif

   *sap = NULL;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMar 31, '16 at 11:51a
activeMar 31, '16 at 11:51a
posts1
users1
websitephp.net

1 user in discussion

Joe Watkins: 1 post

People

Translate

site design / logo © 2019 Grokbase