diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-06-14 18:18:01 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-06-14 18:18:01 +0000 |
commit | 44d1abebb48d678ac1b75f6556c68c9634cb235b (patch) | |
tree | fe1efd24fb2fa1565bb69533583bda1e94f13a08 /src/backend/utils/adt/cash.c | |
parent | 4786a808d9f58746ebb77bf78a6ae2d0854cd6b9 (diff) | |
download | postgresql-44d1abebb48d678ac1b75f6556c68c9634cb235b.tar.gz postgresql-44d1abebb48d678ac1b75f6556c68c9634cb235b.zip |
Big warnings cleanup for Solaris/GCC. Down to about 40 now, but
we'll get there one day.
Use `cat' to create aclocal.m4, not `aclocal'. Some people don't
have automake installed.
Only run the autoconf rule in the top-level GNUmakefile if the
invoker specified `make configure', don't run it automatically
because of CVS timestamp skew.
Diffstat (limited to 'src/backend/utils/adt/cash.c')
-rw-r--r-- | src/backend/utils/adt/cash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c index 861d5931d47..15386fe20ae 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.38 2000/06/13 07:35:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.39 2000/06/14 18:17:42 petere Exp $ */ #include <limits.h> @@ -115,7 +115,7 @@ cash_in(const char *str) /* we need to add all sorts of checking here. For now just */ /* strip all leading whitespace and any leading currency symbol */ - while (isspace(*s)) + while (isspace((int) *s)) s++; if (strncmp(s, csymbol, strlen(csymbol)) == 0) s += strlen(csymbol); @@ -147,7 +147,7 @@ cash_in(const char *str) printf("cashin- string is '%s'\n", s); #endif - while (isspace(*s)) + while (isspace((int) *s)) s++; if (strncmp(s, csymbol, strlen(csymbol)) == 0) s += strlen(csymbol); @@ -160,7 +160,7 @@ cash_in(const char *str) { /* we look for digits as int4 as we have less */ /* than the required number of decimal places */ - if (isdigit(*s) && dec < fpoint) + if (isdigit((int) *s) && dec < fpoint) { value = (value * 10) + *s - '0'; @@ -182,7 +182,7 @@ cash_in(const char *str) else { /* round off */ - if (isdigit(*s) && *s >= '5') + if (isdigit((int) *s) && *s >= '5') value++; /* adjust for less than required decimal places */ @@ -193,7 +193,7 @@ cash_in(const char *str) } } - while (isspace(*s) || *s == '0' || *s == ')') + while (isspace((int) *s) || *s == '0' || *s == ')') s++; if (*s != '\0') |