Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/mkswap.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index e482b88..e9eacea 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -331,7 +331,7 @@ get_size(const char *file) { fd = open(file, O_RDONLY); if (fd < 0) { perror(file); - exit(1); + exit(EXIT_FAILURE); } if (blkdev_get_size(fd, &size) == 0) size /= pagesize; @@ -567,7 +567,7 @@ main(int argc, char ** argv) { if (stat(device_name, &statbuf) < 0) { perror(device_name); - exit(1); + exit(EXIT_FAILURE); } if (S_ISBLK(statbuf.st_mode)) DEV = open(device_name, O_RDWR | O_EXCL); @@ -576,7 +576,7 @@ main(int argc, char ** argv) { if (DEV < 0) { perror(device_name); - exit(1); + exit(EXIT_FAILURE); } /* Want a block device. Probably not /dev/hda or /dev/hdb. */ @@ -659,5 +659,5 @@ main(int argc, char ** argv) { freecon(oldcontext); } #endif - return 0; + return EXIT_SUCCESS; } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html