summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2003-07-27 04:59:29 +0000
committerBruce Momjian2003-07-27 04:59:29 +0000
commitb29c557e0f6ba5754794463b5eae281fd0cb8c64 (patch)
tree20b8f6fba8ccd9208f83e1a6d31460d4ac44d44f
parentb6a1d25b0aa179c86e0607d4c0c3b647dc5bbb87 (diff)
Cleanup of timetravel compile warnings.
-rw-r--r--contrib/spi/timetravel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c
index b7789a2e20d..08ab0b8bd5a 100644
--- a/contrib/spi/timetravel.c
+++ b/contrib/spi/timetravel.c
@@ -15,6 +15,7 @@
/* AbsoluteTime currabstime(void); */
Datum timetravel(PG_FUNCTION_ARGS);
Datum set_timetravel(PG_FUNCTION_ARGS);
+Datum get_timetravel(PG_FUNCTION_ARGS);
typedef struct
{
@@ -31,7 +32,7 @@ typedef struct _TTOffList
char name[1];
} TTOffList;
-static TTOffList TTOff = {NULL,0};
+static TTOffList TTOff = {NULL,{0}};
static int findTTStatus(char *name);
static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans);
@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
void *pplan;
Oid *ctypes;
char sql[8192];
- int j;
/* allocate ctypes for preparation */
ctypes = (Oid *) palloc(natts * sizeof(Oid));
@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS)
/* Tuple to return to upper Executor ... */
if(newtuple)
{ /* UPDATE */
- HeapTuple tmptuple;
int chnattrs = 0;
int chattrs[MaxAttrNum];
Datum newvals[MaxAttrNum];
@@ -477,7 +476,7 @@ PG_FUNCTION_INFO_V1(get_timetravel);
Datum
get_timetravel(PG_FUNCTION_ARGS)
{
- Name relname = PG_GETARG_NAME(0);
+ Name relname = PG_GETARG_NAME(0);
TTOffList *pp;
for(pp = TTOff.next; pp; pp = pp->next)