mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.13 1997/04/18 08:30:08 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.14 1997/07/24 20:13:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1131,7 +1131,6 @@ BufferPoolCheckLeak()
|
||||
{
|
||||
register int i;
|
||||
int error = 0;
|
||||
void PrintBufferDescs();
|
||||
|
||||
for (i = 1; i <= NBuffers; i++) {
|
||||
if (BufferIsValid(i)) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.3 1996/11/06 06:49:10 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.4 1997/07/24 20:14:15 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -481,12 +481,6 @@ SISetDataEntry(SISeg *segP, SharedInvalidData *data)
|
||||
{
|
||||
Offset offsetToNewData;
|
||||
SISegEntry *eP, *lastP;
|
||||
bool SISegFull();
|
||||
Offset SIEntryOffset();
|
||||
Offset SIGetStartFreeSpace();
|
||||
SISegEntry *SIGetFirstDataEntry();
|
||||
SISegEntry *SIGetNextDataEntry();
|
||||
SISegEntry *SIGetLastDataEntry();
|
||||
|
||||
if (!SIIncNumEntries(segP, 1))
|
||||
return(false); /* no space */
|
||||
@@ -542,7 +536,6 @@ bool
|
||||
SIDelDataEntry(SISeg *segP)
|
||||
{
|
||||
SISegEntry *e1P;
|
||||
SISegEntry *SIGetFirstDataEntry();
|
||||
|
||||
if (!SIDecNumEntries(segP, 1)) {
|
||||
/* no entries in buffer */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.13 1997/05/22 17:08:33 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.14 1997/07/24 20:14:41 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -114,7 +114,6 @@ mdcreate(Relation reln)
|
||||
{
|
||||
int fd, vfd;
|
||||
char *path;
|
||||
extern bool IsBootstrapProcessingMode();
|
||||
|
||||
path = relpath(&(reln->rd_rel->relname.data[0]));
|
||||
fd = FileNameOpenFile(path, O_RDWR|O_CREAT|O_EXCL, 0600);
|
||||
|
||||
Reference in New Issue
Block a user