Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 06dde51

Browse files
committed
Silence compiler warning.
1 parent 7711e40 commit 06dde51

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/backend/access/common/indextuple.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.47 2000/11/30 18:38:45 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.48 2000/12/07 02:00:47 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -229,8 +229,10 @@ nocache_index_getattr(IndexTuple tup,
229229
* check to see if desired att is null
230230
* ----------------
231231
*/
232-
bp = (char *) tup + sizeof(*tup); /* "knows" t_bits are
233-
* here! */
232+
233+
/* XXX "knows" t_bits are just after fixed tuple header! */
234+
bp = (bits8 *) ((char *) tup + sizeof(*tup));
235+
234236
#ifdef IN_MACRO
235237
/* This is handled in the macro */
236238

src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.153 2000/12/03 20:45:39 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.154 2000/12/07 02:04:30 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2206,7 +2206,9 @@ pqPacketSend(PGconn *conn, const char *buf, size_t len)
22062206

22072207
#define MAXBUFSIZE 256
22082208

2209-
int parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage) {
2209+
static int
2210+
parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage)
2211+
{
22102212
char *service = conninfo_getval(options, "service");
22112213
char *serviceFile = SYSCONFDIR "/pg_service.conf";
22122214
int group_found = 0;

0 commit comments

Comments
 (0)