summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/lnumeric.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-02-10 02:00:56 +0000
committerache <ache@FreeBSD.org>2001-02-10 02:00:56 +0000
commitb8bd5d2b4448a538b517e75ccd9023c33f6cc574 (patch)
treea7952da6bc8704ce0fbf5030e36beef7eb434977 /lib/libc/locale/lnumeric.c
parent0ec6d3ee51e24e43ec6ad9463cbebee9edf3aa08 (diff)
downloadFreeBSD-src-b8bd5d2b4448a538b517e75ccd9023c33f6cc574.zip
FreeBSD-src-b8bd5d2b4448a538b517e75ccd9023c33f6cc574.tar.gz
Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)
Diffstat (limited to 'lib/libc/locale/lnumeric.c')
-rw-r--r--lib/libc/locale/lnumeric.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c
index cfe3f5b..60949b0 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 */
OpenPOWER on IntegriCloud