#include <dirent.h>
#ifndef lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.128 2008/02/26 03:03:40 rrt Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.129 2008/02/27 17:59:21 rrt Exp $")
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
FILE *f = fopen(ms->file = fn, "r");
if (f == NULL) {
if (errno != ENOENT)
- file_error(ms, errno, "cannot read magic file `%s'",
- fn);
- (*errs)++;
+ file_error(ms, errno, "cannot read magic file `%s'",
+ fn);
+ (*errs)++;
} else {
/* read and parse this file */
for (ms->line = 1; fgets(line, sizeof(line), f) != NULL; ms->line++) {
continue;
}
if (parse(ms, marray, marraycount, line, lineno, action) != 0)
- (*errs)++;
- }
+ (*errs)++;
+ }
(void)fclose(f);
- }
+ }
}
/*