[PATCH] swapon: use EXIT_SUCCESS constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Davidlohr Bueso <dave@xxxxxxx>

Signed-off-by: Davidlohr Bueso <dave@xxxxxxx>
---
 mount/swapon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mount/swapon.c b/mount/swapon.c
index 2c0dd9f..5c9c3be 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -711,7 +711,7 @@ main_swapon(int argc, char *argv[]) {
 			break;
 		case 'V':		/* version */
 			printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
-			exit(0);
+			exit(EXIT_SUCCESS);
 		case 0:
 			break;
 		case '?':
@@ -763,7 +763,7 @@ main_swapoff(int argc, char *argv[]) {
 			break;
 		case 'V':		/* version */
 			printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
-			exit(0);
+			exit(EXIT_SUCCESS);
 		case 'L':
 			addl(optarg);
 			break;
-- 
1.7.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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux