summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-01-17 06:40:48 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-01-17 06:40:48 +0000
commitf74998a783b96d0102e810c7335f82ab79ea2e06 (patch)
tree2b1a4a2fba1a3e2c6c778406fba9b7596074e217 /main/network.c
parentf5795a56de3981498ee8d028ac3c8f05e16de30b (diff)
downloadphp-git-f74998a783b96d0102e810c7335f82ab79ea2e06.tar.gz
Kill a couple of warnings
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c
index 7b6bfda022..e5754f9378 100644
--- a/main/network.c
+++ b/main/network.c
@@ -126,7 +126,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal)
memset(&hints, '\0', sizeof(hints));
hints.ai_family = AF_UNSPEC;
- if (n = getaddrinfo(host, NULL, &hints, &res)) {
+ if ((n = getaddrinfo(host, NULL, &hints, &res))) {
php_error(E_WARNING, "php_network_getaddresses: getaddrinfo failed: %s", PHP_GAI_STRERROR(n));
return -1;
}