From d63ed09064c4165fcc65e5c8b7eea019c440941d Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 4 Feb 2023 02:51:04 +0100
Subject: [PATCH] relocatable-prog: Fix compiler warning.

* lib/progreloc.c (full_read): Use a non-const pointer.
---
 ChangeLog       | 5 +++++
 lib/progreloc.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 7d247d9404..62010f67e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-03  Bruno Haible  <bruno@clisp.org>
+
+	relocatable-prog: Fix compiler warning.
+	* lib/progreloc.c (full_read): Use a non-const pointer.
+
 2023-02-03  Bruno Haible  <bruno@clisp.org>
 
 	doc: Update regarding AIX.
diff --git a/lib/progreloc.c b/lib/progreloc.c
index 8534fb08da..30b1f759b6 100644
--- a/lib/progreloc.c
+++ b/lib/progreloc.c
@@ -133,7 +133,7 @@ static size_t
 full_read (int fd, void *buf, size_t count)
 {
   size_t total = 0;
-  const char *ptr = (const char *) buf;
+  char *ptr = (char *) buf;
 
   while (count > 0)
     {
-- 
2.39.5