cvs: php4 /ext/exif exif.c /main network.c
| From: | Rasmus Lerdorf | Date: | Wed, 17 Jan 2001 06:40:49 +0000 |
| Subject: | cvs: php4 /ext/exif exif.c /main network.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3661@lists.php.net to get a copy of this message | ||
rasmus Tue Jan 16 22:40:49 2001 EDT
Modified files:
/php4/ext/exif exif.c
/php4/main network.c
Log:
Kill a couple of warnings
Index: php4/ext/exif/exif.c
diff -u php4/ext/exif/exif.c:1.10 php4/ext/exif/exif.c:1.11
--- php4/ext/exif/exif.c:1.10 Fri Dec 15 09:25:20 2000
+++ php4/ext/exif/exif.c Tue Jan 16 22:40:48 2001
@@ -1027,7 +1027,6 @@
int SectionsRead;
char *LastExifRefd=NULL;
int ret;
- int thumbsize=0;
/* int i; */
ImageInfo->MotorolaOrder = 0;
Index: php4/main/network.c
diff -u php4/main/network.c:1.12 php4/main/network.c:1.13
--- php4/main/network.c:1.12 Sat Jan 13 05:02:19 2001
+++ php4/main/network.c Tue Jan 16 22:40:48 2001
@@ -15,7 +15,7 @@
| Authors: Stig Venaas <venaas@uninett.no> |
+----------------------------------------------------------------------+
*/
-/* $Id: network.c,v 1.12 2001/01/13 13:02:19 zeev Exp $ */
+/* $Id: network.c,v 1.13 2001/01/17 06:40:48 rasmus Exp $ */
#include "php.h"
@@ -126,7 +126,7 @@
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;
}