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/libpq/pqcomm.c | |
parent | 4786a808d9f58746ebb77bf78a6ae2d0854cd6b9 (diff) |
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/libpq/pqcomm.c')
-rw-r--r-- | src/backend/libpq/pqcomm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 9432d0d2f49..4bbf6849440 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -29,7 +29,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.c,v 1.97 2000/06/11 11:39:50 petere Exp $ + * $Id: pqcomm.c,v 1.98 2000/06/14 18:17:28 petere Exp $ * *------------------------------------------------------------------------- */ @@ -342,13 +342,13 @@ StreamConnection(int server_fd, Port *port) int on = 1; if (setsockopt(port->sock, IPPROTO_TCP, TCP_NODELAY, - &on, sizeof(on)) < 0) + (char *) &on, sizeof(on)) < 0) { perror("postmaster: StreamConnection: setsockopt(TCP_NODELAY)"); return STATUS_ERROR; } if (setsockopt(port->sock, SOL_SOCKET, SO_KEEPALIVE, - &on, sizeof(on)) < 0) + (char *) &on, sizeof(on)) < 0) { perror("postmaster: StreamConnection: setsockopt(SO_KEEPALIVE)"); return STATUS_ERROR; |