Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdlib EXIT_FAILURE police



details:   https://anonhg.NetBSD.org/src/rev/af50926e2faf
branches:  trunk
changeset: 348736:af50926e2faf
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Nov 04 20:04:04 2016 +0000

description:
EXIT_FAILURE police

diffstat:

 lib/libc/stdlib/strtod.3 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9a5a72071147 -r af50926e2faf lib/libc/stdlib/strtod.3
--- a/lib/libc/stdlib/strtod.3  Fri Nov 04 19:41:53 2016 +0000
+++ b/lib/libc/stdlib/strtod.3  Fri Nov 04 20:04:04 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: strtod.3,v 1.25 2016/11/04 19:18:53 riastradh Exp $
+.\"    $NetBSD: strtod.3,v 1.26 2016/11/04 20:04:04 riastradh Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -199,7 +199,7 @@
 errno = 0;
 d = strtod(s, &end);
 if (s[0] == '\e0' || end[0] != '\e0')
-       errx(1, "invalid syntax");
+       errx(EXIT_FAILURE, "invalid syntax");
 if (errno) {
        assert(errno == ERANGE);
        assert(isinf(d) || d == 0 ||



Home | Main Index | Thread Index | Old Index