summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorPeter Eisentraut2019-01-29 00:12:18 +0000
committerPeter Eisentraut2019-02-13 10:50:09 +0000
commitcf40dc65b676c8df1ee12f060b40f0e37a183e04 (patch)
treeeb0b91031dd3c02ff92d582df9b5846fcf2341cd /src/backend
parent6ea95166a0f19ca0363b9c868e676b10365edec9 (diff)
Remove useless casts
Some of these were uselessly casting away "const", some were just nearby, but they where all unnecessary anyway. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/catalog/heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index 06d18a1cfbe..d0215a5eed0 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -777,7 +777,7 @@ AddNewAttributeTuples(Oid new_rel_oid,
{
FormData_pg_attribute attStruct;
- memcpy(&attStruct, (char *) SysAtt[i], sizeof(FormData_pg_attribute));
+ memcpy(&attStruct, SysAtt[i], sizeof(FormData_pg_attribute));
/* Fill in the correct relation OID in the copied tuple */
attStruct.attrelid = new_rel_oid;