From: Jeroen Ruigrok/asmodai Date: Fri, 13 Aug 2004 18:44:11 +0000 (+0000) Subject: Use proper EXIT_FAILURE/EXIT_SUCCESS for exit() calls. X-Git-Tag: v2.0.1~10524 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/399b06aa5b7a67e50ce8eaab1fa736e60bddb3f4 Use proper EXIT_FAILURE/EXIT_SUCCESS for exit() calls. Submitted by: Liam J. Foy --- diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index c09f3ca532..215d16043d 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -13,7 +13,7 @@ * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * * $FreeBSD: src/usr.sbin/apm/apm.c,v 1.22.2.6 2003/04/29 08:53:04 maxim Exp $ - * $DragonFly: src/usr.sbin/apm/apm.c,v 1.3 2004/08/13 18:41:45 asmodai Exp $ + * $DragonFly: src/usr.sbin/apm/apm.c,v 1.4 2004/08/13 18:44:11 asmodai Exp $ */ #include @@ -60,7 +60,7 @@ usage(void) "usage: apm [-ablstzZ] [-d enable ] [ -e enable ] " "[ -h enable ] [-r delta]", " zzz"); - exit(1); + exit(EXIT_FAILURE); } /* @@ -520,5 +520,5 @@ finish_option: apm_display(fd, display); } close(fd); - exit(0); + exit(EXIT_SUCCESS); }