diff options
| author | Peter Eisentraut | 2024-12-06 16:22:19 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2024-12-06 17:49:01 +0000 |
| commit | 8743ea1b2eb3dfbb024f40e8d9952cd85596f552 (patch) | |
| tree | a5aed96cc832f6c12038626066811547dee75c44 /src/bin | |
| parent | 1319997df92447d9b473a538b109b2d1d560c637 (diff) | |
Remove useless casts to (const void *)
Similar to commit 7f798aca1d5, but I didn't think to look for "const"
as well.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 59e7941a0c3..707a3fc844c 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -1822,7 +1822,7 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH) size_t avail = AH->lo_buf_size - AH->lo_buf_used; memcpy((char *) AH->lo_buf + AH->lo_buf_used, ptr, avail); - ptr = (const void *) ((const char *) ptr + avail); + ptr = (const char *) ptr + avail; remaining -= avail; AH->lo_buf_used += avail; dump_lo_buf(AH); |
