From 1961ca44d36055a144895c7b2aa8ab5e62fa25d2 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 13 Mar 2015 01:01:10 -0400 Subject: [PATCH] Fix type mismatch --- uri.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/uri.c b/uri.c index 56d4344..32127a3 100644 --- a/uri.c +++ b/uri.c @@ -298,8 +298,8 @@ PG_FUNCTION_INFO_V1(uri_lt); Datum uri_lt(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) < 0); } @@ -308,8 +308,8 @@ PG_FUNCTION_INFO_V1(uri_le); Datum uri_le(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) <= 0); } @@ -318,8 +318,8 @@ PG_FUNCTION_INFO_V1(uri_eq); Datum uri_eq(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) == 0); } @@ -328,8 +328,8 @@ PG_FUNCTION_INFO_V1(uri_ne); Datum uri_ne(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) != 0); } @@ -338,8 +338,8 @@ PG_FUNCTION_INFO_V1(uri_ge); Datum uri_ge(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) >= 0); } @@ -348,8 +348,8 @@ PG_FUNCTION_INFO_V1(uri_gt); Datum uri_gt(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) > 0); } @@ -358,8 +358,8 @@ PG_FUNCTION_INFO_V1(uri_cmp); Datum uri_cmp(PG_FUNCTION_ARGS) { - Datum *arg1 = PG_GETARG_DATUM(0); - Datum *arg2 = PG_GETARG_DATUM(1); + Datum arg1 = PG_GETARG_DATUM(0); + Datum arg2 = PG_GETARG_DATUM(1); PG_RETURN_INT32(_uri_cmp(arg1, arg2)); }