]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
authorBruno Haible <bruno@clisp.org>
Sun, 6 Sep 2020 21:23:58 +0000 (23:23 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
* libtextstyle/gnulib-local/lib/html-ostream.oo.c (html_ostream::write_mem): Add
'const'.

libtextstyle/gnulib-local/lib/html-ostream.oo.c

index 07e436a13d9431036df9537fb424836308138444..3c6bfbbc9cb0a135ddd064ea9a2c9d3ac0a13822 100644 (file)
@@ -1,5 +1,5 @@
 /* Output stream that produces HTML output.
-   Copyright (C) 2006-2009, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2006-2009, 2019-2020 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
@@ -178,7 +178,7 @@ html_ostream::write_mem (html_ostream_t stream, const void *data, size_t len)
             if (n > 0)
               {
                 memcpy (inbuffer + inbufcount, data, n);
-                data = (char *) data + n;
+                data = (const char *) data + n;
                 inbufcount += n;
                 len -= n;
               }