helly Sun Feb 25 13:09:07 2007 UTC Modified files: /php-src/ext/exif exif.c Log: - Readability http://cvs.php.net/viewvc.cgi/php-src/ext/exif/exif.c?r1=1.193&r2=1.194&diff_format=u Index: php-src/ext/exif/exif.c diff -u php-src/ext/exif/exif.c:1.193 php-src/ext/exif/exif.c:1.194 --- php-src/ext/exif/exif.c:1.193 Sat Feb 24 18:37:46 2007 +++ php-src/ext/exif/exif.c Sun Feb 25 13:09:07 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: exif.c,v 1.193 2007/02/24 18:37:46 helly Exp $ */ +/* $Id: exif.c,v 1.194 2007/02/25 13:09:07 helly Exp $ */ /* ToDos * @@ -142,7 +142,7 @@ }; /* }}} */ -#define EXIF_VERSION "1.4 $Id: exif.c,v 1.193 2007/02/24 18:37:46 helly Exp $" +#define EXIF_VERSION "1.4 $Id: exif.c,v 1.194 2007/02/25 13:09:07 helly Exp $" /* {{{ PHP_MINFO_FUNCTION */ @@ -569,7 +569,7 @@ #define TAG_TABLE_END \ {TAG_NONE, "No tag value"},\ {TAG_COMPUTED_VALUE, "Computed value"},\ - {TAG_END_OF_LIST, ""} /* Important for exif_get_tagname() IF value != "" functionresult is != false */ + {TAG_END_OF_LIST, ""} /* Important for exif_get_tagname() IF value != "" function result is != false */ static tag_info_array tag_table_IFD = { { 0x000B, "ACDComment"}, @@ -996,11 +996,8 @@ int i, t; char tmp[32]; - for (i=0;;i++) { - if ((t=tag_table[i].Tag) == tag_num || t==TAG_END_OF_LIST) { - if (t==TAG_END_OF_LIST) { - break; - } + for (i = 0; (t = tag_table[i].Tag) != TAG_END_OF_LIST; i++) { + if (t == tag_num) { if (ret && len) { strlcpy(ret, tag_table[i].Desc, abs(len)); if (len < 0) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php