Source-Changes-HG archive

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

[src/trunk]: src/share/misc exit with EXIT_FAILURE, not 1, as elsewhere



details:   https://anonhg.NetBSD.org/src/rev/e7516643954e
branches:  trunk
changeset: 373525:e7516643954e
user:      jschauma <jschauma%NetBSD.org@localhost>
date:      Tue Feb 14 18:56:10 2023 +0000

description:
exit with EXIT_FAILURE, not 1, as elsewhere

diffstat:

 share/misc/style |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r facb61692db9 -r e7516643954e share/misc/style
--- a/share/misc/style  Tue Feb 14 18:26:59 2023 +0000
+++ b/share/misc/style  Tue Feb 14 18:56:10 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: style,v 1.67 2022/12/30 21:12:44 jkoshy Exp $ */
+/* $NetBSD: style,v 1.68 2023/02/14 18:56:10 jschauma Exp $ */
 
 /*
  * The revision control tag appears first, with a blank line after it.
@@ -30,7 +30,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: style,v 1.67 2022/12/30 21:12:44 jkoshy Exp $");
+__RCSID("$NetBSD: style,v 1.68 2023/02/14 18:56:10 jschauma Exp $");
 
 /*
  * VERY important single-line comments look like this.
@@ -307,7 +307,7 @@
 
        /* No spaces after function names. */
        if ((result = function(a1, a2, a3, a4)) == NULL)
-               exit(1);
+               exit(EXIT_FAILURE);
 
        /*
         * Unary operators don't require spaces, binary operators do.



Home | Main Index | Thread Index | Old Index