summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-08-24 16:35:33 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2025-05-24 15:00:03 -0700
commit0090ddef26cef1c837ca5789ebba77f813131ec6 (patch)
tree7f3df57776f4e39f72843bcd7a025d586eec76ea
parentadf389fc19aedbf1be077b05365d164cd6f463d8 (diff)
_IceWrite: accept const pointers for data to write
Will cause -Wdiscarded-qualifiers warnings unless built with xtrans commit e69d45306f3836 or later (included in xtrans 1.6.0). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libice/-/merge_requests/25>
-rw-r--r--include/X11/ICE/ICEmsg.h2
-rw-r--r--src/misc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/X11/ICE/ICEmsg.h b/include/X11/ICE/ICEmsg.h
index 13e1509..d1d3323 100644
--- a/include/X11/ICE/ICEmsg.h
+++ b/include/X11/ICE/ICEmsg.h
@@ -58,7 +58,7 @@ extern void _IceReadSkip (
extern void _IceWrite (
IceConn /* iceConn */,
unsigned long /* nbytes */,
- char * /* ptr */
+ const char * /* ptr */
);
diff --git a/src/misc.c b/src/misc.c
index 764dbfc..623cbf1 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -348,7 +348,7 @@ void
_IceWrite (
register IceConn iceConn,
unsigned long nbytes,
- register char *ptr
+ const char *ptr
)
{
register unsigned long nleft;