aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-misc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-11-08 04:05:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-11-08 04:05:13 +0000
commit64af43a15f97162aa4b5a4cbdaa10f3721adf996 (patch)
tree3212964a8acb46c32615567f48302ea626fecab9 /src/interfaces/libpq/fe-misc.c
parentc6e25ed1afa75a8fe03ed1b71f522dcbd9f4bb66 (diff)
downloadpostgresql-64af43a15f97162aa4b5a4cbdaa10f3721adf996.tar.gz
postgresql-64af43a15f97162aa4b5a4cbdaa10f3721adf996.zip
Add casts to suppress compiler warnings observed on Darwin platform
(surprised no one has reported these yet...)
Diffstat (limited to 'src/interfaces/libpq/fe-misc.c')
-rw-r--r--src/interfaces/libpq/fe-misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c
index 66c142ce172..30d1dbced84 100644
--- a/src/interfaces/libpq/fe-misc.c
+++ b/src/interfaces/libpq/fe-misc.c
@@ -25,7 +25,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.60 2001/11/05 17:46:37 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.61 2001/11/08 04:05:13 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -128,7 +128,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
{
printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("could not flush enough data (space available: %d, space needed %d)\n"),
- Max(conn->outBufSize - conn->outCount, 0), nbytes);
+ (int) Max(conn->outBufSize - conn->outCount, 0),
+ (int) nbytes);
return EOF;
}
/* fixup avail for while loop */