fixes another complaint.
More fixes from Bruce...
*
*
* IDENTIFICATION
- * $Id: nbtsort.c,v 1.1.1.1 1996/07/09 06:21:12 scrappy Exp $
+ * $Id: nbtsort.c,v 1.2 1996/07/31 18:46:47 scrappy Exp $
*
* NOTES
*
}
static int
-_bt_isortcmp(BTItem *bti1p, BTItem *bti2p)
+_bt_isortcmp(const void *bti1p,const void *bti2p)
{
- BTItem bti1 = *bti1p;
- BTItem bti2 = *bti2p;
+ BTItem bti1 = *(BTItem *)bti1p;
+ BTItem bti2 = *(BTItem *)bti2p;
if (bti1 == (BTItem) NULL) {
if (bti2 == (BTItem) NULL) {
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/clauseinfo.c,v 1.2 1996/07/22 23:30:57 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/clauseinfo.c,v 1.3 1996/07/31 18:47:06 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
temp = (CInfo *)lfirst(i);
get_relattval((Node*)temp->clause, &dummy, &attno, &constval, &flag);
- result1 = lappendi(result1, attno);
+ result1 = lappendi(result1, (int)attno);
result2 = lappendi(result2, constval);
result3 = lappendi(result3, flag);
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.1.1.1 1996/07/09 06:21:39 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.2 1996/07/31 18:47:08 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
result = (float64) fmgr(functionObjectId,
(char *) operatorObjectId,
(char *) relationObjectId,
- (char *) attributeNumber,
+ (char *) (int)attributeNumber,
(char *) constValue,
(char *) constFlag,
NULL);
result = (float64) fmgr(functionObjectId,
(char *) operatorObjectId,
(char *) relationObjectId1,
- (char *) attributeNumber1,
+ (char *) (int)attributeNumber1,
(char *) relationObjectId2,
- (char *) attributeNumber2,
+ (char *) (int)attributeNumber2,
NULL);
if (!PointerIsValid(result))
elog(WARN, "JoinClauseSelectivity: bad pointer");
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.1.1.1 1996/07/09 06:22:05 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.2 1996/07/31 18:48:16 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
result = (float64)fmgr(get_oprrest (operatorObjectId),
(char*)operatorObjectId,
(char*)indrelid,
- (char*)attributeNumber,
+ (char*)(int)attributeNumber,
(char*)constValue,
(char*)constFlag,
NULL);
temp = (float64)fmgr(get_oprrest (operatorObjectId),
(char*)operatorObjectId,
(char*)indrelid,
- (char*)attributeNumber,
+ (char*)(int)attributeNumber,
(char*)constValue,
(char*)constFlag,
NULL);
result = (float64)fmgr(get_oprrest (operatorObjectId),
(char*)operatorObjectId,
(char*)indrelid,
- (char*)attributeNumber,
+ (char*)(int)attributeNumber,
(char*)constValue,
(char*)constFlag,
NULL);
temp = (float64)fmgr(get_oprrest (operatorObjectId),
(char*)operatorObjectId,
(char*)indrelid,
- (char*)attributeNumber,
+ (char*)(int)attributeNumber,
(char*)constValue,
(char*)constFlag,
NULL);