From: Bruno Haible Date: Sat, 4 Feb 2023 01:51:04 +0000 (+0100) Subject: relocatable-prog: Fix compiler warning. X-Git-Tag: v1.0~1716 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d63ed09064c4165fcc65e5c8b7eea019c440941d;p=gnulib.git relocatable-prog: Fix compiler warning. * lib/progreloc.c (full_read): Use a non-const pointer. --- diff --git a/ChangeLog b/ChangeLog index 7d247d9404..62010f67e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-02-03 Bruno Haible + + relocatable-prog: Fix compiler warning. + * lib/progreloc.c (full_read): Use a non-const pointer. + 2023-02-03 Bruno Haible 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) {