diff options
author | Neil Conway | 2005-05-12 00:39:37 +0000 |
---|---|---|
committer | Neil Conway | 2005-05-12 00:39:37 +0000 |
commit | 8d6e9bca3783672b84318766fde0458435635fb8 (patch) | |
tree | d3e11c7b9d2d83c6ebc24967cf1eca0cf557c58b /contrib/btree_gist/btree_bytea.c | |
parent | 34b788d67498f476b539550c2b76e13ae70a53b4 (diff) |
This patch makes some minor style cleanups to contrib/btree_gist: remove
the "extern" keyword from function definitions, reorganize some
PG_GETARG_XXX() usage, and similar.
Diffstat (limited to 'contrib/btree_gist/btree_bytea.c')
-rw-r--r-- | contrib/btree_gist/btree_bytea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/btree_gist/btree_bytea.c b/contrib/btree_gist/btree_bytea.c index 2d2169412ee..79095fc0e9d 100644 --- a/contrib/btree_gist/btree_bytea.c +++ b/contrib/btree_gist/btree_bytea.c @@ -97,7 +97,7 @@ gbt_bytea_consistent(PG_FUNCTION_ARGS) { GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0); GBT_VARKEY *key = (GBT_VARKEY *) DatumGetPointer(entry->key); - void *qtst = (void *) DatumGetPointer(PG_GETARG_DATUM(1)); + void *qtst = (void *) PG_GETARG_POINTER(1); void *query = (void *) DatumGetByteaP(PG_GETARG_DATUM(1)); StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2); bool retval = FALSE; @@ -146,9 +146,9 @@ gbt_bytea_same(PG_FUNCTION_ARGS) Datum gbt_bytea_penalty(PG_FUNCTION_ARGS) { - float *result = (float *) PG_GETARG_POINTER(2); GISTENTRY *o = (GISTENTRY *) PG_GETARG_POINTER(0); GISTENTRY *n = (GISTENTRY *) PG_GETARG_POINTER(1); + float *result = (float *) PG_GETARG_POINTER(2); PG_RETURN_POINTER(gbt_var_penalty(result, o, n, &tinfo)); } |