aboutsummaryrefslogtreecommitdiff
path: root/mkswap.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
committerMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /mkswap.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.bz2
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'mkswap.c')
-rw-r--r--mkswap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mkswap.c b/mkswap.c
index 627d04f60..4757e15f8 100644
--- a/mkswap.c
+++ b/mkswap.c
@@ -176,7 +176,7 @@ static int bit_test_and_clear(unsigned int *addr, unsigned int nr)
176void die(const char *str) 176void die(const char *str)
177{ 177{
178 errorMsg("%s\n", str); 178 errorMsg("%s\n", str);
179 exit(FALSE); 179 exit(EXIT_FAILURE);
180} 180}
181 181
182void page_ok(int page) 182void page_ok(int page)
@@ -325,7 +325,7 @@ int mkswap_main(int argc, char **argv)
325 } else if (PAGES > sz && !force) { 325 } else if (PAGES > sz && !force) {
326 errorMsg("error: size %ld is larger than device size %d\n", 326 errorMsg("error: size %ld is larger than device size %d\n",
327 PAGES * (pagesize / 1024), sz * (pagesize / 1024)); 327 PAGES * (pagesize / 1024), sz * (pagesize / 1024));
328 exit(FALSE); 328 return EXIT_FAILURE;
329 } 329 }
330 330
331 if (version == -1) { 331 if (version == -1) {
@@ -369,7 +369,7 @@ int mkswap_main(int argc, char **argv)
369 DEV = open(device_name, O_RDWR); 369 DEV = open(device_name, O_RDWR);
370 if (DEV < 0 || fstat(DEV, &statbuf) < 0) { 370 if (DEV < 0 || fstat(DEV, &statbuf) < 0) {
371 perror(device_name); 371 perror(device_name);
372 exit(FALSE); 372 return EXIT_FAILURE;
373 } 373 }
374 if (!S_ISBLK(statbuf.st_mode)) 374 if (!S_ISBLK(statbuf.st_mode))
375 check = 0; 375 check = 0;
@@ -393,7 +393,7 @@ int mkswap_main(int argc, char **argv)
393"This probably means creating v0 swap would destroy your partition table\n" 393"This probably means creating v0 swap would destroy your partition table\n"
394"No swap created. If you really want to create swap v0 on that device, use\n" 394"No swap created. If you really want to create swap v0 on that device, use\n"
395"the -f option to force it.\n", device_name); 395"the -f option to force it.\n", device_name);
396 exit(FALSE); 396 return EXIT_FAILURE;
397 } 397 }
398 } 398 }
399 } 399 }
@@ -429,5 +429,5 @@ int mkswap_main(int argc, char **argv)
429 */ 429 */
430 if (fsync(DEV)) 430 if (fsync(DEV))
431 die("fsync failed"); 431 die("fsync failed");
432 return(TRUE); 432 return EXIT_SUCCESS;
433} 433}