]> granicus.if.org Git - php/commitdiff
Kill a couple of warnings
authorRasmus Lerdorf <rasmus@php.net>
Wed, 17 Jan 2001 06:40:48 +0000 (06:40 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 17 Jan 2001 06:40:48 +0000 (06:40 +0000)
ext/exif/exif.c
main/network.c

index d4e17cf6a7803b393c7251efc31677f3bc7a3b2f..fc9a0fcf66117fcbf7a83e8ccaf235a144258e7f 100644 (file)
@@ -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;
index 7b6bfda0226ddd4596b56c9e535ba9441505ac22..e5754f937810f2c8a7b42283c08ecb947e4860ea 100644 (file)
@@ -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;
                }