From f4b5953974b0474002b04a76b5ec605604ad018b Mon Sep 17 00:00:00 2001
From: Paul Ramsey <pramsey@cleverelephant.ca>
Date: Sat, 7 Mar 2015 15:29:07 +0000
Subject: [PATCH] Fix elog error

git-svn-id: http://svn.osgeo.org/postgis/trunk@13325 b70326c6-7e19-0410-871a-916f4a2858ee
---
 postgis/lwgeom_dump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/postgis/lwgeom_dump.c b/postgis/lwgeom_dump.c
index 44511bd8a..212d1af56 100644
--- a/postgis/lwgeom_dump.c
+++ b/postgis/lwgeom_dump.c
@@ -226,7 +226,7 @@ Datum LWGEOM_dump_rings(PG_FUNCTION_ARGS)
 		pglwgeom = PG_GETARG_GSERIALIZED_P_COPY(0);
 		if ( gserialized_get_type(pglwgeom) != POLYGONTYPE )
 		{
-			lwerror("Input is not a polygon");
+			elog(ERROR, "Input is not a polygon");
 		}
 
 		lwgeom = lwgeom_from_gserialized(pglwgeom);
@@ -316,7 +316,7 @@ Datum ST_Subdivide(PG_FUNCTION_ARGS)
 {
 #if POSTGIS_GEOS_VERSION < 35
 
-	elog(ERROR, ("The GEOS version this PostGIS binary "
+	elog(ERROR, "The GEOS version this PostGIS binary "
 	        "was compiled against (%d) doesn't support "
 	        "'%s' function (3.5.0+ required)",
 	        POSTGIS_GEOS_VERSION, __func__);
-- 
2.40.0