summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/lmonetary.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-02-10 03:31:23 +0000
committerache <ache@FreeBSD.org>2001-02-10 03:31:23 +0000
commit3e4ec8e5b21f8d6fc42e74f11bd47efc7127e685 (patch)
treed5d50c4b5568efb0d45a609f8935f397982446e9 /lib/libc/locale/lmonetary.c
parent42a3debfe346a42152afc07a0ea592e455948062 (diff)
downloadFreeBSD-src-3e4ec8e5b21f8d6fc42e74f11bd47efc7127e685.zip
FreeBSD-src-3e4ec8e5b21f8d6fc42e74f11bd47efc7127e685.tar.gz
According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back out
all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv()
Diffstat (limited to 'lib/libc/locale/lmonetary.c')
-rw-r--r--lib/libc/locale/lmonetary.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c
index 3db39fa..715790e 100644
--- a/lib/libc/locale/lmonetary.c
+++ b/lib/libc/locale/lmonetary.c
@@ -26,8 +26,6 @@
* $FreeBSD$
*/
-#include <limits.h>
-#include <sys/cdefs.h>
#include "lmonetary.h"
#include "ldpart.h"
@@ -36,7 +34,7 @@ extern int __mlocale_changed;
#define LCMONETARY_SIZE (sizeof(struct lc_monetary_T) / sizeof(char *))
static char empty[] = "";
-static char numempty[] = __XSTRING(CHAR_MAX);
+static char numempty[] = "-1";
static const struct lc_monetary_T _C_monetary_locale = {
empty , /* int_curr_symbol */
OpenPOWER on IntegriCloud