diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-02-10 02:00:56 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-02-10 02:00:56 +0000 |
| commit | d2712eafa7753150817960bc8544328b2db1178d (patch) | |
| tree | 16546905df67c278c73ebd4fab58e0fb98b0b193 /lib/libc | |
| parent | 1506a668dc7e9fff9ad21e98202fc560bf10afd5 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/lmonetary.c | 4 | ||||
| -rw-r--r-- | lib/libc/locale/lnumeric.c | 4 | ||||
| -rw-r--r-- | lib/libc/locale/localeconv.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c index 45af48a60073..3db39fac26a0 100644 --- a/lib/libc/locale/lmonetary.c +++ b/lib/libc/locale/lmonetary.c @@ -26,6 +26,8 @@ * $FreeBSD$ */ +#include <limits.h> +#include <sys/cdefs.h> #include "lmonetary.h" #include "ldpart.h" @@ -34,7 +36,7 @@ extern int __mlocale_changed; #define LCMONETARY_SIZE (sizeof(struct lc_monetary_T) / sizeof(char *)) static char empty[] = ""; -static char numempty[] = "127"; /* XXX: CHAR_MAX supposed here */ +static char numempty[] = __XSTRING(CHAR_MAX); static const struct lc_monetary_T _C_monetary_locale = { empty , /* int_curr_symbol */ diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c index cfe3f5b300e9..60949b0abf3e 100644 --- a/lib/libc/locale/lnumeric.c +++ b/lib/libc/locale/lnumeric.c @@ -26,6 +26,8 @@ * $FreeBSD$ */ +#include <limits.h> +#include <sys/cdefs.h> #include "lnumeric.h" #include "ldpart.h" @@ -33,7 +35,7 @@ extern int __nlocale_changed; #define LCNUMERIC_SIZE (sizeof(struct lc_numeric_T) / sizeof(char *)) -static char numempty[] = "127"; /* XXX: CHAR_MAX supposed here */ +static char numempty[] = __XSTRING(CHAR_MAX); static const struct lc_numeric_T _C_numeric_locale = { ".", /* decimal_point */ diff --git a/lib/libc/locale/localeconv.c b/lib/libc/locale/localeconv.c index 16fa5399b021..6e6238807286 100644 --- a/lib/libc/locale/localeconv.c +++ b/lib/libc/locale/localeconv.c @@ -51,7 +51,7 @@ int __nlocale_changed = 1; static char cnv(char *str) { - return (char)strtol(str, NULL, 10); + return (char)strtol(str, NULL, 0); } /* |
