aboutsummaryrefslogtreecommitdiff
path: root/src/backend/rewrite/rowsecurity.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-12-23 12:00:00 -0500
committerPeter Eisentraut <peter_e@gmx.net>2016-12-23 13:17:20 -0500
commit158df30359025d74daee74a3b927fd07c3b1a413 (patch)
tree54298db15c9d6e0b5a9bcd95911048147ffb0dc0 /src/backend/rewrite/rowsecurity.c
parent3c9d398484fb6e188e665be8299d6e5e89924c94 (diff)
downloadpostgresql-158df30359025d74daee74a3b927fd07c3b1a413.tar.gz
postgresql-158df30359025d74daee74a3b927fd07c3b1a413.zip
Remove unnecessary casts of makeNode() result
makeNode() is already a macro that has the right result pointer type, so casting it again to the same type is unnecessary.
Diffstat (limited to 'src/backend/rewrite/rowsecurity.c')
-rw-r--r--src/backend/rewrite/rowsecurity.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/rewrite/rowsecurity.c b/src/backend/rewrite/rowsecurity.c
index e38586dd80b..53b27d11370 100644
--- a/src/backend/rewrite/rowsecurity.c
+++ b/src/backend/rewrite/rowsecurity.c
@@ -703,7 +703,7 @@ add_with_check_options(Relation rel,
*/
WithCheckOption *wco;
- wco = (WithCheckOption *) makeNode(WithCheckOption);
+ wco = makeNode(WithCheckOption);
wco->kind = kind;
wco->relname = pstrdup(RelationGetRelationName(rel));
wco->polname = NULL;
@@ -735,7 +735,7 @@ add_with_check_options(Relation rel,
qual = copyObject(qual);
ChangeVarNodes((Node *) qual, 1, rt_index, 0);
- wco = (WithCheckOption *) makeNode(WithCheckOption);
+ wco = makeNode(WithCheckOption);
wco->kind = kind;
wco->relname = pstrdup(RelationGetRelationName(rel));
wco->polname = pstrdup(policy->policy_name);
@@ -755,7 +755,7 @@ add_with_check_options(Relation rel,
*/
WithCheckOption *wco;
- wco = (WithCheckOption *) makeNode(WithCheckOption);
+ wco = makeNode(WithCheckOption);
wco->kind = kind;
wco->relname = pstrdup(RelationGetRelationName(rel));
wco->polname = NULL;