1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-15 05:46:52 +03:00

Remove useless casts to (const void *)

Similar to commit 7f798aca1d, but I didn't think to look for "const"
as well.
This commit is contained in:
Peter Eisentraut
2024-12-06 17:22:19 +01:00
parent 1319997df9
commit 8743ea1b2e
4 changed files with 6 additions and 6 deletions

View File

@@ -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);