]> granicus.if.org Git - php/commitdiff
Killed a compile warning.
authorfoobar <sniper@php.net>
Wed, 22 Aug 2001 08:34:04 +0000 (08:34 +0000)
committerfoobar <sniper@php.net>
Wed, 22 Aug 2001 08:34:04 +0000 (08:34 +0000)
ext/exif/exif.c
ext/gd/gd.c
ext/gd/php_gd.h
ext/zlib/zlib_fopen_wrapper.c

index 71d6fef02ce7367d1ba75b0a618d9db149d7f22a..fc555819cb67449428d09a8a27359078a1571c7e 100644 (file)
@@ -883,8 +883,9 @@ static void process_EXIF (ImageInfoType *ImageInfo, char *CharBuf, unsigned int
 static int scan_JPEG_header (ImageInfoType *ImageInfo, FILE *infile, Section_t *Sections, int *SectionsRead, int ReadAll, char *LastExifRefd)
 {
     int a;
+/*
     int HaveCom = FALSE;
-
+*/
     a = fgetc(infile);
     if (a != 0xff || fgetc(infile) != M_SOI) {
         return FALSE;
index a0a96742d30519367c7db482bac8c5c5398c2398..1d1d85462637a3879de40cdb24a31b8cf0858b84 100644 (file)
@@ -2257,7 +2257,7 @@ PHP_FUNCTION(imagefontheight)
 
 /* {{{ php_gdimagecharup
  * workaround for a bug in gd 1.2 */
-void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
+static void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
 {
        int cx, cy, px, py, fline;
        cx = 0;
index f29695831bec18ad06a7c5b5503a07a47734728b..378936c42f9a1514a28cf4c866140452069922ef 100644 (file)
@@ -146,7 +146,6 @@ PHP_FUNCTION(imagestring);
 PHP_FUNCTION(imagestringup);
 PHP_FUNCTION(imagesx);
 PHP_FUNCTION(imagesy);
-static void php_gdimagecharup(gdImagePtr, gdFontPtr, int, int, int, int);
 PHP_FUNCTION(imagedashedline);
 PHP_FUNCTION(imagettfbbox);
 PHP_FUNCTION(imagettftext);
index 5ab4dead5d3e86b90b062c8211cadfa045f88415..acf0a9289da78495ee661df1054a18514a528028 100644 (file)
@@ -75,7 +75,7 @@ FILE *zlib_fopen_wrapper(const char *path, char *mode, int options, int *issock,
                
                path++;
 
-               fp = php_fopen_wrapper(path, mode, options|IGNORE_URL, &fissock, &fsocketd, NULL TSRMLS_CC);
+               fp = php_fopen_wrapper((char *) path, mode, options|IGNORE_URL, &fissock, &fsocketd, NULL TSRMLS_CC);
                
                if (!fp) {
                        free(gc);