Module Name: src
Committed By: christos
Date: Thu Jun 14 02:44:16 UTC 2018
Modified Files:
src/bin/expr: expr.y
Log Message:
return to caller instead of exit(2)
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/bin/expr/expr.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/expr/expr.y
diff -u src/bin/expr/expr.y:1.41 src/bin/expr/expr.y:1.42
--- src/bin/expr/expr.y:1.41 Wed Jun 13 13:35:15 2018
+++ src/bin/expr/expr.y Wed Jun 13 22:44:16 2018
@@ -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 @@ main(int argc, const char * const *argv)
av = argv + 1;
- exit(yyparse());
+ return yyparse();
/* NOTREACHED */
}