diff options
-rw-r--r-- | ext/exif/exif.c | 1 | ||||
-rw-r--r-- | main/network.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index d4e17cf6a7..fc9a0fcf66 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1027,7 +1027,6 @@ int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll) int SectionsRead; char *LastExifRefd=NULL; int ret; - int thumbsize=0; /* int i; */ ImageInfo->MotorolaOrder = 0; 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; } |