From: Bryan Henderson Date: Wed, 8 Jan 1997 08:39:10 +0000 (+0000) Subject: Use proper types so it compiles on DEC C89. Thanks Erik Bertelson. X-Git-Tag: REL6_1~773 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c4b21493d49d93431c4842ee2187b7f28362c38;p=postgresql Use proper types so it compiles on DEC C89. Thanks Erik Bertelson. --- diff --git a/src/backend/tcop/dest.c b/src/backend/tcop/dest.c index 82e847812e..78142fcb3b 100644 --- a/src/backend/tcop/dest.c +++ b/src/backend/tcop/dest.c @@ -7,7 +7,7 @@ * * * 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 @@ * output functions * ---------------- */ -void -donothing(List *tuple, List *attrdesc) +static void +donothing(HeapTuple tuple, TupleDesc attrdesc) { } -void (*DestToFunction(CommandDest dest))() +void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc) { switch (dest) { case RemoteInternal: diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 4e3d4e2674..655a6a74fa 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -7,7 +7,7 @@ * * * 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) if (arg1 == NULL || arg2 == NULL) return((int32) 0); - a1p = VARDATA(arg1); - a2p = VARDATA(arg2); + a1p = (unsigned char *)VARDATA(arg1); + a2p = (unsigned char *)VARDATA(arg2); if ((len = arg1->vl_len) > arg2->vl_len) len = arg2->vl_len; @@ -328,8 +328,8 @@ text_le(struct varlena *arg1, struct varlena *arg2) if (arg1 == NULL || arg2 == NULL) return((int32) 0); - a1p = VARDATA(arg1); - a2p = VARDATA(arg2); + a1p = (unsigned char *)VARDATA(arg1); + a2p = (unsigned char *)VARDATA(arg2); if ((len = arg1->vl_len) > arg2->vl_len) len = arg2->vl_len; diff --git a/src/include/tcop/dest.h b/src/include/tcop/dest.h index 47cbd225cb..9e2f7688ec 100644 --- a/src/include/tcop/dest.h +++ b/src/include/tcop/dest.h @@ -26,7 +26,7 @@ * * 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 { } AttrInfo; */ -extern void donothing(List *tuple, List *attrdesc); extern void (*DestToFunction(CommandDest dest))(); extern void EndCommand(char *commandTag, CommandDest dest); extern void SendCopyBegin(void);