diff options
author | Peter Eisentraut | 2024-11-28 07:19:22 +0000 |
---|---|---|
committer | Peter Eisentraut | 2024-11-28 07:27:20 +0000 |
commit | 7f798aca1d5df290aafad41180baea0ae311b4ee (patch) | |
tree | b4c8132ec85c21f6c72308b5857defd70958de69 /src/backend/commands/policy.c | |
parent | 97525bc5c8ffb31475d23955d08e9ec9c1408f33 (diff) |
Remove useless casts to (void *)
Many of them just seem to have been copied around for no real reason.
Their presence causes (small) risks of hiding actual type mismatches
or silently discarding qualifiers
Discussion: https://www.postgresql.org/message-id/flat/[email protected]
Diffstat (limited to 'src/backend/commands/policy.c')
-rw-r--r-- | src/backend/commands/policy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/policy.c b/src/backend/commands/policy.c index 6ff3eba8249..7b7b3d72c55 100644 --- a/src/backend/commands/policy.c +++ b/src/backend/commands/policy.c @@ -627,7 +627,7 @@ CreatePolicy(CreatePolicyStmt *stmt) table_id = RangeVarGetRelidExtended(stmt->table, AccessExclusiveLock, 0, RangeVarCallbackForPolicy, - (void *) stmt); + stmt); /* Open target_table to build quals. No additional lock is necessary. */ target_table = relation_open(table_id, NoLock); @@ -803,7 +803,7 @@ AlterPolicy(AlterPolicyStmt *stmt) table_id = RangeVarGetRelidExtended(stmt->table, AccessExclusiveLock, 0, RangeVarCallbackForPolicy, - (void *) stmt); + stmt); target_table = relation_open(table_id, NoLock); @@ -1108,7 +1108,7 @@ rename_policy(RenameStmt *stmt) table_id = RangeVarGetRelidExtended(stmt->relation, AccessExclusiveLock, 0, RangeVarCallbackForPolicy, - (void *) stmt); + stmt); target_table = relation_open(table_id, NoLock); |