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/interfaces/libpq/fe-connect.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/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 2e190fd8b1d..e1af29a1b28 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.129 2000/06/11 11:40:07 petere Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.130 2000/06/14 18:17:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -629,10 +629,7 @@ connectNoDelay(PGconn *conn) int on = 1; if (setsockopt(conn->sock, IPPROTO_TCP, TCP_NODELAY, -#ifdef WIN32 - (char *) -#endif - &on, + (char *) &on, sizeof(on)) < 0) { printfPQExpBuffer(&conn->errorMessage, @@ -1098,7 +1095,7 @@ keep_going: /* We will come back to here until there */ if (getsockopt(conn->sock, SOL_SOCKET, SO_ERROR, - &optval, &optlen) == -1) + (char *) &optval, &optlen) == -1) { printfPQExpBuffer(&conn->errorMessage, "PQconnectPoll() -- getsockopt() failed: " @@ -2117,7 +2114,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) while (*cp) { /* Skip blanks before the parameter name */ - if (isspace(*cp)) + if (isspace((int) *cp)) { cp++; continue; @@ -2129,12 +2126,12 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) { if (*cp == '=') break; - if (isspace(*cp)) + if (isspace((int) *cp)) { *cp++ = '\0'; while (*cp) { - if (!isspace(*cp)) + if (!isspace((int) *cp)) break; cp++; } @@ -2158,7 +2155,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) /* Skip blanks after the '=' */ while (*cp) { - if (!isspace(*cp)) + if (!isspace((int) *cp)) break; cp++; } @@ -2171,7 +2168,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) cp2 = pval; while (*cp) { - if (isspace(*cp)) + if (isspace((int) *cp)) { *cp++ = '\0'; break; |