]> Savannah Git Hosting - gnulib.git/commitdiff
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>
Sat, 4 Feb 2023 01:51:04 +0000 (02:51 +0100)
* lib/progreloc.c (full_read): Use a non-const pointer.

ChangeLog
lib/progreloc.c

index 7d247d940427a9f9fddc499301fc84a09c10fb45..62010f67e666a999c3761ba33cbd1fca9065f20a 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-02-03  Bruno Haible  <bruno@clisp.org>
 
        doc: Update regarding AIX.
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)
     {