relocatable-prog: Fix compiler warning.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2023 01:51:04 +0000 (02:51 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Feb 2023 02:29:57 +0000 (03:29 +0100)
* lib/progreloc.c (full_read): Use a non-const pointer.

ChangeLog
lib/progreloc.c

index 192e6e26a9950785a9de3e976e19d6fdc729ea9a..3e51bc51d54bc4428bf8826dc1ad607db0c01ab2 100644 (file)
--- 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-01-30  Bruno Haible  <bruno@clisp.org>
 
        at-internal: Fix support for z/OS.
index 8534fb08daef13aabad0beffc7f4d4884df66f37..30b1f759b6f01670abd6c71f0a15044673fafd92 100644 (file)
@@ -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)
     {