diff options
author | Sascha Schumann <sas@php.net> | 2002-12-22 16:03:28 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-12-22 16:03:28 +0000 |
commit | 280f4a4373eb5ed591268be1adfc3d734412858a (patch) | |
tree | e58224966d6541c6c27287d7afebdad255b699c1 /ext/exif | |
parent | 90c478664a6cf4adec9498ec7ec4850296b25cc5 (diff) | |
download | php-git-280f4a4373eb5ed591268be1adfc3d734412858a.tar.gz |
'index' is a function name in the C library, do not use it as variable name.
also, cast the 'void *' correctly to a 'char *' for manipulation
instead of an 'int'.
Diffstat (limited to 'ext/exif')
-rw-r--r-- | ext/exif/exif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 77c9552576..66b07e97a9 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1534,7 +1534,7 @@ static int exif_file_sections_free(image_info_type *ImageInfo) */ static void exif_iif_add_value(image_info_type *image_info, int section_index, char *name, int tag, int format, size_t length, void* value, int motorola_intel TSRMLS_DC) { - size_t index; + size_t idex; void *vptr; image_info_value *info_value; image_info_data *info_data; @@ -1630,9 +1630,9 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c } else { info_value = &info_data->value; } - for (index=0,vptr=value; index<length; index++,(int)vptr+=php_tiff_bytes_per_format[format]) { + for (idex=0,vptr=value; idex<length; idex++,(char *)vptr+=php_tiff_bytes_per_format[format]) { if (length>1) { - info_value = &info_data->value.list[index]; + info_value = &info_data->value.list[idex]; } switch (format) { case TAG_FMT_USHORT: |