summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib')
-rw-r--r--src/lib/libc/stdlib/atexit.c4
-rw-r--r--src/lib/libc/stdlib/div.c4
-rw-r--r--src/lib/libc/stdlib/gcvt.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/stdlib/atexit.c b/src/lib/libc/stdlib/atexit.c
index 81d2dc2476..3334617b65 100644
--- a/src/lib/libc/stdlib/atexit.c
+++ b/src/lib/libc/stdlib/atexit.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atexit.c,v 1.28 2022/10/22 15:21:25 deraadt Exp $ */ 1/* $OpenBSD: atexit.c,v 1.29 2022/12/27 17:10:06 jmc Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Daniel Hartmeier 3 * Copyright (c) 2002 Daniel Hartmeier
4 * All rights reserved. 4 * All rights reserved.
@@ -112,7 +112,7 @@ unlock:
112DEF_STRONG(__cxa_atexit); 112DEF_STRONG(__cxa_atexit);
113 113
114/* 114/*
115 * Copy of atexit() used by libc and anything staticly linked into the 115 * Copy of atexit() used by libc and anything statically linked into the
116 * executable. This passes NULL for the dso, so the callbacks are only 116 * executable. This passes NULL for the dso, so the callbacks are only
117 * invoked by exit() and not dlclose() 117 * invoked by exit() and not dlclose()
118 */ 118 */
diff --git a/src/lib/libc/stdlib/div.c b/src/lib/libc/stdlib/div.c
index beaa428c7a..5e6164f0bb 100644
--- a/src/lib/libc/stdlib/div.c
+++ b/src/lib/libc/stdlib/div.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: div.c,v 1.6 2015/09/13 08:31:47 guenther Exp $ */ 1/* $OpenBSD: div.c,v 1.7 2022/12/27 17:10:06 jmc Exp $ */
2/* 2/*
3 * Copyright (c) 1990 Regents of the University of California. 3 * Copyright (c) 1990 Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -46,7 +46,7 @@ div(int num, int denom)
46 * words, we should always truncate the quotient towards 46 * words, we should always truncate the quotient towards
47 * 0, never -infinity. 47 * 0, never -infinity.
48 * 48 *
49 * Machine division and remainer may work either way when 49 * Machine division and remainder may work either way when
50 * one or both of n or d is negative. If only one is 50 * one or both of n or d is negative. If only one is
51 * negative and r.quot has been truncated towards -inf, 51 * negative and r.quot has been truncated towards -inf,
52 * r.rem will have the same sign as denom and the opposite 52 * r.rem will have the same sign as denom and the opposite
diff --git a/src/lib/libc/stdlib/gcvt.c b/src/lib/libc/stdlib/gcvt.c
index f9528e7e7a..d3ab1b0415 100644
--- a/src/lib/libc/stdlib/gcvt.c
+++ b/src/lib/libc/stdlib/gcvt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gcvt.c,v 1.14 2019/01/25 00:19:25 millert Exp $ */ 1/* $OpenBSD: gcvt.c,v 1.15 2022/12/27 17:10:06 jmc Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2002, 2003, 2006, 2010 4 * Copyright (c) 2002, 2003, 2006, 2010
@@ -61,7 +61,7 @@ gcvt(double value, int ndigit, char *buf)
61 if (sign) 61 if (sign)
62 *dst++ = '-'; 62 *dst++ = '-';
63 63
64 /* Match printf(3) behavior for exponential vs. regular fomatting. */ 64 /* Match printf(3) behavior for exponential vs. regular formatting. */
65 if (decpt <= -4 || decpt > ndigit) { 65 if (decpt <= -4 || decpt > ndigit) {
66 /* exponential format (e.g. 1.2345e+13) */ 66 /* exponential format (e.g. 1.2345e+13) */
67 if (--decpt < 0) { 67 if (--decpt < 0) {