aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-02-07 06:53:05 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-02-07 06:57:59 +0100
commitaa6954104644334c53838f181053b9f7aa13f58c (patch)
tree10af7e8602cfd6626b163a350960ff9d1875f43a /src/backend/storage/ipc
parentd9d7fe68d35e1e10c7c8276d07f5abf9c477cb13 (diff)
downloadpostgresql-aa6954104644334c53838f181053b9f7aa13f58c.tar.gz
postgresql-aa6954104644334c53838f181053b9f7aa13f58c.zip
Remove useless casts to (void *) in arguments of some system functions
The affected functions are: bsearch, memcmp, memcpy, memset, memmove, qsort, repalloc Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com
Diffstat (limited to 'src/backend/storage/ipc')
-rw-r--r--src/backend/storage/ipc/procarray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c
index 4340bf96416..a7071b2fce5 100644
--- a/src/backend/storage/ipc/procarray.c
+++ b/src/backend/storage/ipc/procarray.c
@@ -2394,7 +2394,7 @@ GetSnapshotData(Snapshot snapshot)
pg_read_barrier(); /* pairs with GetNewTransactionId */
memcpy(snapshot->subxip + subcount,
- (void *) proc->subxids.xids,
+ proc->subxids.xids,
nsubxids * sizeof(TransactionId));
subcount += nsubxids;
}
@@ -2846,7 +2846,7 @@ GetRunningTransactionData(void)
/* barrier not really required, as XidGenLock is held, but ... */
pg_read_barrier(); /* pairs with GetNewTransactionId */
- memcpy(&xids[count], (void *) proc->subxids.xids,
+ memcpy(&xids[count], proc->subxids.xids,
nsubxids * sizeof(TransactionId));
count += nsubxids;
subcount += nsubxids;