aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-06-14 18:18:01 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-06-14 18:18:01 +0000
commit44d1abebb48d678ac1b75f6556c68c9634cb235b (patch)
treefe1efd24fb2fa1565bb69533583bda1e94f13a08 /src/backend/utils/adt/arrayfuncs.c
parent4786a808d9f58746ebb77bf78a6ae2d0854cd6b9 (diff)
downloadpostgresql-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/arrayfuncs.c')
-rw-r--r--src/backend/utils/adt/arrayfuncs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c
index aae18aa047f..fe96d77f43a 100644
--- a/src/backend/utils/adt/arrayfuncs.c
+++ b/src/backend/utils/adt/arrayfuncs.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.58 2000/06/14 05:24:48 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.59 2000/06/14 18:17:42 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -121,7 +121,7 @@ array_in(PG_FUNCTION_ARGS)
done = false;
for (ndim = 0; !done;)
{
- while (isspace(*p))
+ while (isspace((int) *p))
p++;
if (*p == '[')
{
@@ -134,7 +134,7 @@ array_in(PG_FUNCTION_ARGS)
lBound[ndim] = atoi(p);
p = r + 1;
}
- for (q = p; isdigit(*q); q++);
+ for (q = p; isdigit((int) *q); q++);
if (*q != ']')
elog(ERROR, "array_in: missing ']' in array declaration");
*q = '\0';
@@ -163,12 +163,12 @@ array_in(PG_FUNCTION_ARGS)
}
else
{
- while (isspace(*p))
+ while (isspace((int) *p))
p++;
if (strncmp(p, ASSGN, strlen(ASSGN)))
elog(ERROR, "array_in: missing assignment operator");
p += strlen(ASSGN);
- while (isspace(*p))
+ while (isspace((int) *p))
p++;
}
@@ -321,7 +321,7 @@ _ArrayCount(char *str, int *dim, int typdelim)
temp[ndim - 1]++;
q++;
if (!eoArray)
- while (isspace(*q))
+ while (isspace((int) *q))
q++;
}
for (i = 0; i < ndim; ++i)
@@ -452,7 +452,7 @@ _ReadArrayStr(char *arrayStr,
/*
* if not at the end of the array skip white space
*/
- while (isspace(*q))
+ while (isspace((int) *q))
{
p++;
q++;