summaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-01 02:55:13 +0000
committerMatt Kraai2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /util-linux/mkswap.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
busybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r--util-linux/mkswap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 627d04f..4757e15 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -176,7 +176,7 @@ static int bit_test_and_clear(unsigned int *addr, unsigned int nr)
void die(const char *str)
{
errorMsg("%s\n", str);
- exit(FALSE);
+ exit(EXIT_FAILURE);
}
void page_ok(int page)
@@ -325,7 +325,7 @@ int mkswap_main(int argc, char **argv)
} else if (PAGES > sz && !force) {
errorMsg("error: size %ld is larger than device size %d\n",
PAGES * (pagesize / 1024), sz * (pagesize / 1024));
- exit(FALSE);
+ return EXIT_FAILURE;
}
if (version == -1) {
@@ -369,7 +369,7 @@ int mkswap_main(int argc, char **argv)
DEV = open(device_name, O_RDWR);
if (DEV < 0 || fstat(DEV, &statbuf) < 0) {
perror(device_name);
- exit(FALSE);
+ return EXIT_FAILURE;
}
if (!S_ISBLK(statbuf.st_mode))
check = 0;
@@ -393,7 +393,7 @@ int mkswap_main(int argc, char **argv)
"This probably means creating v0 swap would destroy your partition table\n"
"No swap created. If you really want to create swap v0 on that device, use\n"
"the -f option to force it.\n", device_name);
- exit(FALSE);
+ return EXIT_FAILURE;
}
}
}
@@ -429,5 +429,5 @@ int mkswap_main(int argc, char **argv)
*/
if (fsync(DEV))
die("fsync failed");
- return(TRUE);
+ return EXIT_SUCCESS;
}