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/varlena.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/varlena.c')
-rw-r--r-- | src/backend/utils/adt/varlena.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 34a3c13e1aa..fedd29f0c3e 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.59 2000/06/13 07:35:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.60 2000/06/14 18:17:45 petere Exp $ * *------------------------------------------------------------------------- */ @@ -57,9 +57,9 @@ byteain(char *inputText) { if (*tp == '\\') tp++; - else if (!isdigit(*tp++) || - !isdigit(*tp++) || - !isdigit(*tp++)) + else if (!isdigit((int) *tp++) || + !isdigit((int) *tp++) || + !isdigit((int) *tp++)) elog(ERROR, "Bad input string for type bytea"); } tp = inputText; @@ -111,7 +111,7 @@ byteaout(bytea *vlena) for (i = vlena->vl_len - VARHDRSZ; i != 0; i--, vp++) if (*vp == '\\') len += 2; - else if (isascii(*vp) && isprint(*vp)) + else if (isascii((int) *vp) && isprint((int) *vp)) len++; else len += VARHDRSZ; @@ -124,7 +124,7 @@ byteaout(bytea *vlena) *rp++ = '\\'; *rp++ = '\\'; } - else if (isascii(*vp) && isprint(*vp)) + else if (isascii((int) *vp) && isprint((int) *vp)) *rp++ = *vp++; else { |