Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06dde51

Browse files
committed
Silence compiler warning.
1 parent7711e40 commit06dde51

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
#ifdefIN_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
#defineMAXBUFSIZE 256
22082208

2209-
intparseServiceInfo(PQconninfoOption*options,PQExpBuffererrorMessage) {
2209+
staticint
2210+
parseServiceInfo(PQconninfoOption*options,PQExpBuffererrorMessage)
2211+
{
22102212
char*service=conninfo_getval(options,"service");
22112213
char*serviceFile=SYSCONFDIR"/pg_service.conf";
22122214
intgroup_found=0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp