void die(const char *str)
{
errorMsg("%s\n", str);
- exit(FALSE);
+ exit(EXIT_FAILURE);
}
void page_ok(int page)
} 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) {
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;
"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;
}
}
}
*/
if (fsync(DEV))
die("fsync failed");
- return(TRUE);
+ return EXIT_SUCCESS;
}