summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/system/mtd/src/seama.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/mtd/src/seama.c b/package/system/mtd/src/seama.c
index e3c0e4d..ab24f03 100644
--- a/package/system/mtd/src/seama.c
+++ b/package/system/mtd/src/seama.c
@@ -148,7 +148,7 @@ mtd_fixseama(const char *mtd, size_t offset)
shdr = (struct seama_entity_header *)(first_block + offset);
if (shdr->magic != htonl(SEAMA_MAGIC)) {
fprintf(stderr, "No SEAMA header found\n");
- return -1;
+ exit(1);
} else if (!ntohl(shdr->size)) {
fprintf(stderr, "Seama entity with empty image\n");
exit(1);