]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: use EXIT_SUCCESS constants
authorDavidlohr Bueso <dave@gnu.org>
Thu, 3 Feb 2011 20:43:29 +0000 (17:43 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 14:40:51 +0000 (15:40 +0100)
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
mount/swapon.c

index 2c0dd9fa38789fc0c3434f9074b6bc7a9cf0d5c8..5c9c3be432c1e6b4324297910474e770218f1ee8 100644 (file)
@@ -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;