diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2001-01-17 06:40:48 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2001-01-17 06:40:48 +0000 |
| commit | f74998a783b96d0102e810c7335f82ab79ea2e06 (patch) | |
| tree | 2b1a4a2fba1a3e2c6c778406fba9b7596074e217 | |
| parent | f5795a56de3981498ee8d028ac3c8f05e16de30b (diff) | |
| download | php-git-f74998a783b96d0102e810c7335f82ab79ea2e06.tar.gz | |
Kill a couple of warnings
| -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; } |
