From 3442d7651a371bccb01c307a7ba44eed9db9b5e4 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 5 Oct 2025 21:16:34 +0100 Subject: [PATCH] Use a void *, not a char *, so the types are consistent throughout. --- src/pv/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pv/transfer.c b/src/pv/transfer.c index 5971815..d6c64d2 100644 --- a/src/pv/transfer.c +++ b/src/pv/transfer.c @@ -966,7 +966,7 @@ static int pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, long /*@only@*/ static char *pv__allocate_aligned_buffer(int outfd, int infd, size_t target_size) { - char *newptr; + void *newptr; #if defined(HAVE_FPATHCONF) && defined(HAVE_POSIX_MEMALIGN) && defined(_PC_REC_XFER_ALIGN) long input_alignment, output_alignment, min_alignment;