From 66f0cf7da8eeaeca4b9894bfafd61789b514af4a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 26 Feb 2012 15:22:27 +0200 Subject: Remove useless const qualifier Claiming that the typevar argument to DefineCompositeType() is const was a plain lie. A similar case in DefineVirtualRelation() was already changed in passing in commit 1575fbcb. Also clean up the now unnecessary casts that used to cast away the const. --- src/backend/commands/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/commands/view.c') diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c index f895488a5a5..99fb7dbb8f4 100644 --- a/src/backend/commands/view.c +++ b/src/backend/commands/view.c @@ -254,7 +254,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace, * now set the parameters for keys/inheritance etc. All of these are * uninteresting for views... */ - createStmt->relation = (RangeVar *) relation; + createStmt->relation = relation; createStmt->tableElts = attrList; createStmt->inhRelations = NIL; createStmt->constraints = NIL; -- cgit v1.2.3