Source-Changes-HG archive

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

[src/trunk]: src/sbin/scan_ffs Use EXIT_{SUCCESS,FAILURE}.



details:   https://anonhg.NetBSD.org/src/rev/c9618f8d7cdc
branches:  trunk
changeset: 582071:c9618f8d7cdc
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed Jun 15 18:42:23 2005 +0000

description:
Use EXIT_{SUCCESS,FAILURE}.

diffstat:

 sbin/scan_ffs/scan_ffs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e6e1834891f6 -r c9618f8d7cdc sbin/scan_ffs/scan_ffs.c
--- a/sbin/scan_ffs/scan_ffs.c  Wed Jun 15 18:39:46 2005 +0000
+++ b/sbin/scan_ffs/scan_ffs.c  Wed Jun 15 18:42:23 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scan_ffs.c,v 1.1 2005/06/15 18:06:19 xtraeme Exp $     */
+/*     $NetBSD: scan_ffs.c,v 1.2 2005/06/15 18:42:23 kleink Exp $      */
 /*     $OpenBSD: scan_ffs.c,v 1.11 2004/02/16 19:13:03 deraadt Exp$    */
 
 /*
@@ -39,7 +39,7 @@
  
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: scan_ffs.c,v 1.1 2005/06/15 18:06:19 xtraeme Exp $");
+__RCSID("$NetBSD: scan_ffs.c,v 1.2 2005/06/15 18:42:23 kleink Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -220,7 +220,7 @@
                        }
                }
        }
-       return 0;
+       return EXIT_SUCCESS;
 }
 
 
@@ -229,7 +229,7 @@
 {
        (void)fprintf(stderr,
                "usage: %s [-lv] [-s start] [-e end] device", getprogname());
-       exit(1);
+       exit(EXIT_FAILURE);
 }
 
 



Home | Main Index | Thread Index | Old Index