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/multibyte.c8
-rw-r--r--src/lib/libc/stdlib/strtod.c5
2 files changed, 3 insertions, 10 deletions
diff --git a/src/lib/libc/stdlib/multibyte.c b/src/lib/libc/stdlib/multibyte.c
index 12e70c4a2c..6f08bbe342 100644
--- a/src/lib/libc/stdlib/multibyte.c
+++ b/src/lib/libc/stdlib/multibyte.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char *rcsid = "$OpenBSD: multibyte.c,v 1.2 1996/08/19 08:33:39 tholo Exp $"; 35static char *rcsid = "$OpenBSD: multibyte.c,v 1.3 2002/02/19 19:39:37 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <stdlib.h> 38#include <stdlib.h>
@@ -73,13 +73,7 @@ mbtowc(pwc, s, n)
73 73
74/*ARGSUSED*/ 74/*ARGSUSED*/
75int 75int
76#ifdef __STDC__
77wctomb(char *s, wchar_t wchar) 76wctomb(char *s, wchar_t wchar)
78#else
79wctomb(s, wchar)
80 char *s;
81 wchar_t wchar;
82#endif
83{ 77{
84 if (s == NULL) 78 if (s == NULL)
85 return 0; 79 return 0;
diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c
index 44cc369b16..ce7ce9fe56 100644
--- a/src/lib/libc/stdlib/strtod.c
+++ b/src/lib/libc/stdlib/strtod.c
@@ -90,7 +90,7 @@
90 */ 90 */
91 91
92#if defined(LIBC_SCCS) && !defined(lint) 92#if defined(LIBC_SCCS) && !defined(lint)
93static char *rcsid = "$OpenBSD: strtod.c,v 1.14 2001/07/09 06:57:45 deraadt Exp $"; 93static char *rcsid = "$OpenBSD: strtod.c,v 1.15 2002/02/19 19:39:37 millert Exp $";
94#endif /* LIBC_SCCS and not lint */ 94#endif /* LIBC_SCCS and not lint */
95 95
96#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ 96#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
@@ -153,7 +153,6 @@ extern void *MALLOC(size_t);
153#include "errno.h" 153#include "errno.h"
154 154
155#ifdef Bad_float_h 155#ifdef Bad_float_h
156#undef __STDC__
157#ifdef IEEE_BIG_ENDIAN 156#ifdef IEEE_BIG_ENDIAN
158#define IEEE_ARITHMETIC 157#define IEEE_ARITHMETIC
159#endif 158#endif
@@ -1429,7 +1428,7 @@ strtod
1429 if (e1 > DBL_MAX_10_EXP) { 1428 if (e1 > DBL_MAX_10_EXP) {
1430 ovfl: 1429 ovfl:
1431 errno = ERANGE; 1430 errno = ERANGE;
1432#ifdef __STDC__ 1431#ifndef Bad_float_h
1433 value(rv) = HUGE_VAL; 1432 value(rv) = HUGE_VAL;
1434#else 1433#else
1435 /* Can't trust HUGE_VAL */ 1434 /* Can't trust HUGE_VAL */