Module Name: src Committed By: riastradh Date: Fri Nov 4 20:04:04 UTC 2016
Modified Files: src/lib/libc/stdlib: strtod.3 Log Message: EXIT_FAILURE police To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/lib/libc/stdlib/strtod.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/stdlib/strtod.3 diff -u src/lib/libc/stdlib/strtod.3:1.25 src/lib/libc/stdlib/strtod.3:1.26 --- src/lib/libc/stdlib/strtod.3:1.25 Fri Nov 4 19:18:53 2016 +++ src/lib/libc/stdlib/strtod.3 Fri Nov 4 20:04:04 2016 @@ -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 @@ double d; 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 ||