- struct file_entry *fent;
- char *last_name = NULL;
-
- fent = get_next_file(fw, statbuf.st_size - 4);
- while (fent != NULL) {
- last_name = fent->name;
- fent = get_next_file(NULL, 0);
- }
-
- if (strcmp(last_name, "pdata")) {
- fprintf(stderr, "corrupt firmware image found (pdata is not last entry, aborting!\n");
- exit(1);
- }
-