Source-Changes-HG archive

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

[src/trunk]: src/bin/expr return to caller instead of exit(2)



details:   https://anonhg.NetBSD.org/src/rev/72b3b2c6ad42
branches:  trunk
changeset: 319847:72b3b2c6ad42
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 14 02:44:16 2018 +0000

description:
return to caller instead of exit(2)

diffstat:

 bin/expr/expr.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 1e15eae476bf -r 72b3b2c6ad42 bin/expr/expr.y
--- a/bin/expr/expr.y   Wed Jun 13 23:27:48 2018 +0000
+++ b/bin/expr/expr.y   Thu Jun 14 02:44:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: expr.y,v 1.41 2018/06/13 17:35:15 kamil Exp $ */
+/* $NetBSD: expr.y,v 1.42 2018/06/14 02:44:16 christos Exp $ */
 
 /*_
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 %{
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: expr.y,v 1.41 2018/06/13 17:35:15 kamil Exp $");
+__RCSID("$NetBSD: expr.y,v 1.42 2018/06/14 02:44:16 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -453,6 +453,6 @@
 
        av = argv + 1;
 
-       exit(yyparse());
+       return yyparse();
        /* NOTREACHED */
 }



Home | Main Index | Thread Index | Old Index