aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/cash.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-04-24 20:30:41 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-04-24 20:30:41 +0000
commitb8e376ceb9a72c8d132e21699f11fe2b36b8c68c (patch)
treeaaf3ab194a3a2a594028243cd5aabe9dc2234f2d /src/backend/utils/adt/cash.c
parent79ee06c186e26e244e6e015546aa0755140fe3f1 (diff)
downloadpostgresql-b8e376ceb9a72c8d132e21699f11fe2b36b8c68c.tar.gz
postgresql-b8e376ceb9a72c8d132e21699f11fe2b36b8c68c.zip
From: "Pedro J. Lobo" <pjlobo@euitt.upm.es>
Subject: [PATCHES] Patches for compiling 6.1 on Digital Unix 3.2c Attached to this message are the patches I needed to compile 6.1 cleanly under Digital Unix 3.2c with DEC cc. I hope these are the last ones. At least, the number of files needing a patch has decreased noticeably since I sent my previous patches. Nice work :-) One of the patches is a bug fix, but I'm including it here anyway. With these patches applied, the beast seems to work properly. However, I've done only some preliminary tests. More on this later (but hopefully before the April 30 deadline... :-)
Diffstat (limited to 'src/backend/utils/adt/cash.c')
-rw-r--r--src/backend/utils/adt/cash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c
index 05d79cbe1c3..b6f2d0988c4 100644
--- a/src/backend/utils/adt/cash.c
+++ b/src/backend/utils/adt/cash.c
@@ -9,7 +9,7 @@
* workings can be found in the book "Software Solutions in C" by
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.5 1997/04/18 02:55:54 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.6 1997/04/24 20:30:41 scrappy Exp $
*/
#include <stdio.h>
@@ -60,7 +60,7 @@ cash_in(const char *str)
char dsymbol, ssymbol, psymbol, nsymbol, csymbol;
#ifdef USE_LOCALE
- if (lconv == NULL) *lconv = localeconv();
+ if (lconv == NULL) lconv = localeconv();
/* frac_digits in the C locale seems to return CHAR_MAX */
/* best guess is 2 in this case I think */
@@ -158,7 +158,7 @@ cash_out(Cash *value)
char convention;
#ifdef USE_LOCALE
- if (lconv == NULL) *lconv = localeconv();
+ if (lconv == NULL) lconv = localeconv();
mon_group = *lconv->mon_grouping;
comma = *lconv->mon_thousands_sep;