From 44d1abebb48d678ac1b75f6556c68c9634cb235b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 14 Jun 2000 18:18:01 +0000 Subject: 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. --- src/backend/libpq/pqcomm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/libpq/pqcomm.c') 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; -- cgit v1.2.3