*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.97 1999/03/28 20:32:01 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.98 1999/04/02 04:51:04 tgl Exp $
*
*-------------------------------------------------------------------------
*/
static int MESSAGE_LEVEL; /* message level */
static TransactionId XmaxRecent;
-extern void GetXmaxRecent(TransactionId *xid);
#define swapLong(a,b) {long tmp; tmp=a; a=b; b=tmp;}
#define swapInt(a,b) {int tmp; tmp=a; a=b; b=tmp;}
}
if (last_move == true)
{
- res = compar(elm, bot + last * size);
+ res = compar(elm, (void *)((char *)bot + last * size));
if (res > 0)
return NULL;
if (res == 0)
- return bot + last * size;
+ return (void *)((char *)bot + last * size);
last_move = false;
}
- res = compar(elm, bot + celm * size);
+ res = compar(elm, (void *)((char *)bot + celm * size));
if (res == 0)
- return bot + celm * size;
+ return (void *)((char *)bot + celm * size);
if (res < 0)
{
if (celm == 0)
return NULL;
last = last - celm - 1;
- bot = bot + (celm + 1) * size;
+ bot = (void *)((char *)bot + (celm + 1) * size);
celm = (last + 1) / 2;
first_move = true;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.38 1999/03/28 20:32:22 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.39 1999/04/02 04:51:03 tgl Exp $
*
*-------------------------------------------------------------------------
*/
SpinRelease(ShmemIndexLock);
elog(ERROR, "GetXmaxRecent: ShmemIndex corrupted");
- return NULL;
}
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: shmem.h,v 1.15 1999/02/13 23:22:10 momjian Exp $
+ * $Id: shmem.h,v 1.16 1999/04/02 04:51:05 tgl Exp $
*
*-------------------------------------------------------------------------
*/
extern long *ShmemInitStruct(char *name, unsigned long size,
bool *foundPtr);
extern bool TransactionIdIsInProgress(TransactionId xid);
+extern void GetXmaxRecent(TransactionId *XmaxRecent);
typedef int TableID;