Mark the dixChangeWindowProperty() value argument as const

It is copied using memcpy() and not modified so we can add const. This
fixes a -Wincompatible-pointer-types-discards-qualifiers compiler warning
that was failing a -Werror XVnc build for me.

Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
This commit is contained in:
Alex Richardson 2021-07-23 09:24:50 +01:00 committed by Povilas Kanapickas
parent fb5322ce28
commit d83c84bd9d
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ ProcChangeProperty(ClientPtr client)
int int
dixChangeWindowProperty(ClientPtr pClient, WindowPtr pWin, Atom property, dixChangeWindowProperty(ClientPtr pClient, WindowPtr pWin, Atom property,
Atom type, int format, int mode, unsigned long len, Atom type, int format, int mode, unsigned long len,
void *value, Bool sendevent) const void *value, Bool sendevent)
{ {
PropertyPtr pProp; PropertyPtr pProp;
PropertyRec savedProp; PropertyRec savedProp;

View File

@ -72,7 +72,7 @@ extern _X_EXPORT int dixChangeWindowProperty(ClientPtr pClient,
int format, int format,
int mode, int mode,
unsigned long len, unsigned long len,
void *value, const void *value,
Bool sendevent); Bool sendevent);
extern _X_EXPORT int DeleteProperty(ClientPtr /*client */ , extern _X_EXPORT int DeleteProperty(ClientPtr /*client */ ,