summaryrefslogtreecommitdiff
path: root/src/backend/storage/sync/sync.c
diff options
context:
space:
mode:
authorPeter Eisentraut2023-02-06 08:05:20 +0000
committerPeter Eisentraut2023-02-06 08:41:01 +0000
commit54a177a948b0a773c25c6737d1cc3cc49222a526 (patch)
treea442be10d2b8515f6b1600f60838e379ee546fe8 /src/backend/storage/sync/sync.c
parent009f8d17146da72478fcb8f544b793c443fa254c (diff)
Remove useless casts to (void *) in hash_search() calls
Some of these appear to be leftovers from when hash_search() took a char * argument (changed in 5999e78fc45dcb91784b64b6e9ae43f4e4f68ca2). Since after this there is some more horizontal space available, do some light reformatting where suitable. Reviewed-by: Corey Huinker <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com
Diffstat (limited to 'src/backend/storage/sync/sync.c')
-rw-r--r--src/backend/storage/sync/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/sync/sync.c b/src/backend/storage/sync/sync.c
index 7135150b167..768d1dbfc41 100644
--- a/src/backend/storage/sync/sync.c
+++ b/src/backend/storage/sync/sync.c
@@ -501,7 +501,7 @@ RememberSyncRequest(const FileTag *ftag, SyncRequestType type)
/* Cancel previously entered request */
entry = (PendingFsyncEntry *) hash_search(pendingOps,
- (void *) ftag,
+ ftag,
HASH_FIND,
NULL);
if (entry != NULL)
@@ -557,7 +557,7 @@ RememberSyncRequest(const FileTag *ftag, SyncRequestType type)
Assert(type == SYNC_REQUEST);
entry = (PendingFsyncEntry *) hash_search(pendingOps,
- (void *) ftag,
+ ftag,
HASH_ENTER,
&found);
/* if new entry, or was previously canceled, initialize it */