aboutsummaryrefslogtreecommitdiff
path: root/jffsX-utils
diff options
context:
space:
mode:
Diffstat (limited to 'jffsX-utils')
-rw-r--r--jffsX-utils/jffs2dump.c6
-rw-r--r--jffsX-utils/mkfs.jffs2.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/jffsX-utils/jffs2dump.c b/jffsX-utils/jffs2dump.c
index a8d082b..82f3197 100644
--- a/jffsX-utils/jffs2dump.c
+++ b/jffsX-utils/jffs2dump.c
@@ -751,7 +751,7 @@ int main(int argc, char **argv)
/* Open the input file */
if ((fd = open(img, O_RDONLY)) == -1) {
perror("open input file");
- exit(1);
+ exit(EXIT_FAILURE);
}
// get image length
@@ -762,7 +762,7 @@ int main(int argc, char **argv)
if (!data) {
perror("out of memory");
close (fd);
- exit(1);
+ exit(EXIT_FAILURE);
}
if (datsize && oobsize) {
@@ -796,5 +796,5 @@ int main(int argc, char **argv)
free (data);
// Return happy
- exit (0);
+ exit (EXIT_SUCCESS);
}
diff --git a/jffsX-utils/mkfs.jffs2.c b/jffsX-utils/mkfs.jffs2.c
index ca5e0d5..88e6cab 100644
--- a/jffsX-utils/mkfs.jffs2.c
+++ b/jffsX-utils/mkfs.jffs2.c
@@ -1052,7 +1052,7 @@ static void formalize_posix_acl(void *xvalue, int *value_len)
if (offset > *value_len) {
printf("Length of JFFS2 ACL expression(%u) is longer than general one(%u).\n",
offset, *value_len);
- exit(1);
+ exit(EXIT_FAILURE);
}
memcpy(xvalue, buffer, offset);
*value_len = offset;