com php-src: fix ident: ext/fileinfo/libmagic/apprentice.c
| From: | Anatol Belski | Date: | Mon, 08 Apr 2013 13:51:22 +0000 |
| Subject: | com php-src: fix ident: ext/fileinfo/libmagic/apprentice.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71885@lists.php.net to get a copy of this message | ||
Commit: 9de5dcad1c3a6090334dceb6ad287e5b2c013f69
Author: Anatol Belski <ab@php.net> Mon, 8 Apr 2013 15:51:22 +0200
Parents: f3ca1155d684d48bca13fcba856e84b0de652a88
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9de5dcad1c3a6090334dceb6ad287e5b2c013f69
Log:
fix ident
Changed paths:
M ext/fileinfo/libmagic/apprentice.c
Diff:
diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c
index 0620fc7..8ae5729 100644
--- a/ext/fileinfo/libmagic/apprentice.c
+++ b/ext/fileinfo/libmagic/apprentice.c
@@ -1163,8 +1163,8 @@ apprentice_load(struct magic_set *ms, const char *fn, int action)
}
/* load directory or file */
- /* FIXME: Read file names and sort them to prevent
- non-determinism. See Debian bug #488562. */
+ /* FIXME: Read file names and sort them to prevent
+ non-determinism. See Debian bug #488562. */
if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
int mflen;
char mfn[MAXPATHLEN];
@@ -1213,21 +1213,21 @@ apprentice_load(struct magic_set *ms, const char *fn, int action)
goto out;
for (j = 0; j < MAGIC_SETS; j++) {
- /* Set types of tests */
+ /* Set types of tests */
for (i = 0; i < mentrycount[j]; ) {
if (mentry[j][i].mp->cont_level != 0) {
- i++;
- continue;
- }
- i = set_text_binary(ms, mentry[j], mentrycount[j], i);
+ i++;
+ continue;
}
+ i = set_text_binary(ms, mentry[j], mentrycount[j], i);
+ }
qsort(mentry[j], mentrycount[j], sizeof(*mentry[j]),
apprentice_sort);
- /*
+ /*
* Make sure that any level 0 "default" line is last
* (if one exists).
- */
+ */
set_last_default(ms, mentry[j], mentrycount[j]);
/* coalesce per file arrays into a single one */