diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-07-31 18:48:16 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-07-31 18:48:16 +0000 |
commit | 7bdd8dcac39a25749b497c71fcbf206b31388061 (patch) | |
tree | 8c79c19bbcc82f7acce7f8d042df8b41c0eb3f66 /src/backend/access | |
parent | 9c0f89c4a40ba6e9c591cdf805a62d9dd2a5dc2f (diff) | |
download | postgresql-7bdd8dcac39a25749b497c71fcbf206b31388061.tar.gz postgresql-7bdd8dcac39a25749b497c71fcbf206b31388061.zip |
This prevent gcc from complaining about casting a short to a char * and
fixes another complaint.
More fixes from Bruce...
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/nbtree/nbtsort.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/nbtree/nbtsort.c b/src/backend/access/nbtree/nbtsort.c index 3d2676324a0..c01c799978c 100644 --- a/src/backend/access/nbtree/nbtsort.c +++ b/src/backend/access/nbtree/nbtsort.c @@ -5,7 +5,7 @@ * * * 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 * @@ -97,10 +97,10 @@ _bt_isortcmpinit(Relation index) } 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) { |