diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-10-16 02:55:30 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-10-16 02:55:30 +0000 |
commit | facb72007333d9c0acff0f8d64b36d2c4a262665 (patch) | |
tree | 63f508de2ef7573ebdd740889b271f2f9101a3d3 /src/interfaces/libpq/libpq-int.h | |
parent | 8a96c50ec98e9d24b25b6bfed359da7778a032d4 (diff) |
Fix connection_timeout to use time() and handle timeout == 1.
Code cleanup.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index e2ee2491f8a..cde2b2d2b05 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-int.h,v 1.59 2002/10/14 17:15:11 momjian Exp $ + * $Id: libpq-int.h,v 1.60 2002/10/16 02:55:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -340,7 +340,8 @@ extern int pqReadData(PGconn *conn); extern int pqFlush(PGconn *conn); extern int pqSendSome(PGconn *conn); extern int pqWait(int forRead, int forWrite, PGconn *conn); -extern int pqWaitTimed(int forRead, int forWrite, PGconn *conn, const struct timeval *timeout); +extern int pqWaitTimed(int forRead, int forWrite, PGconn *conn, + time_t finish_time); extern int pqReadReady(PGconn *conn); extern int pqWriteReady(PGconn *conn); |