Commit 3c4b2149 authored by Bryan Henderson's avatar Bryan Henderson

Use proper types so it compiles on DEC C89. Thanks Erik Bertelson.

parent 5e98c401
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.3 1996/11/10 03:02:42 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.4 1997/01/08 08:36:31 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
* output functions * output functions
* ---------------- * ----------------
*/ */
void static void
donothing(List *tuple, List *attrdesc) donothing(HeapTuple tuple, TupleDesc attrdesc)
{ {
} }
void (*DestToFunction(CommandDest dest))() void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc)
{ {
switch (dest) { switch (dest) {
case RemoteInternal: case RemoteInternal:
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.8 1996/11/08 05:59:51 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.9 1997/01/08 08:38:59 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -297,8 +297,8 @@ text_lt(struct varlena *arg1, struct varlena *arg2) ...@@ -297,8 +297,8 @@ text_lt(struct varlena *arg1, struct varlena *arg2)
if (arg1 == NULL || arg2 == NULL) if (arg1 == NULL || arg2 == NULL)
return((int32) 0); return((int32) 0);
a1p = VARDATA(arg1); a1p = (unsigned char *)VARDATA(arg1);
a2p = VARDATA(arg2); a2p = (unsigned char *)VARDATA(arg2);
if ((len = arg1->vl_len) > arg2->vl_len) if ((len = arg1->vl_len) > arg2->vl_len)
len = arg2->vl_len; len = arg2->vl_len;
...@@ -328,8 +328,8 @@ text_le(struct varlena *arg1, struct varlena *arg2) ...@@ -328,8 +328,8 @@ text_le(struct varlena *arg1, struct varlena *arg2)
if (arg1 == NULL || arg2 == NULL) if (arg1 == NULL || arg2 == NULL)
return((int32) 0); return((int32) 0);
a1p = VARDATA(arg1); a1p = (unsigned char *)VARDATA(arg1);
a2p = VARDATA(arg2); a2p = (unsigned char *)VARDATA(arg2);
if ((len = arg1->vl_len) > arg2->vl_len) if ((len = arg1->vl_len) > arg2->vl_len)
len = arg2->vl_len; len = arg2->vl_len;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: dest.h,v 1.4 1996/11/10 03:06:08 momjian Exp $ * $Id: dest.h,v 1.5 1997/01/08 08:39:10 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -61,7 +61,6 @@ typedef struct AttrInfo { ...@@ -61,7 +61,6 @@ typedef struct AttrInfo {
} AttrInfo; } AttrInfo;
*/ */
extern void donothing(List *tuple, List *attrdesc);
extern void (*DestToFunction(CommandDest dest))(); extern void (*DestToFunction(CommandDest dest))();
extern void EndCommand(char *commandTag, CommandDest dest); extern void EndCommand(char *commandTag, CommandDest dest);
extern void SendCopyBegin(void); extern void SendCopyBegin(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment