summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-16 19:14:34 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-16 19:14:34 -0800
commit14ecba28e2d2846d0690ee86d3d01a1389558fd6 (patch)
tree42b3d22a8b6a653bb31d6361828f515ea4cb221a
parent98c179ea912e9e420451adeb9bab4b462cab836c (diff)
downloadxorg-lib-libXdamage-14ecba28e2d2846d0690ee86d3d01a1389558fd6.tar.gz
Mark two dpy parameters const as suggested by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Xdamage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c
index fe184f5..6b131a4 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -124,7 +124,7 @@ XDamageExtAddDisplay (XDamageExtInfo *extinfo,
* extension object. (Replaces XextRemoveDisplay.)
*/
static int
-XDamageExtRemoveDisplay (XDamageExtInfo *extinfo, Display *dpy)
+XDamageExtRemoveDisplay (XDamageExtInfo *extinfo, const Display *dpy)
{
XDamageExtDisplayInfo *info, *prev;
@@ -165,7 +165,7 @@ XDamageExtRemoveDisplay (XDamageExtInfo *extinfo, Display *dpy)
*/
static XDamageExtDisplayInfo *
XDamageExtFindDisplay (XDamageExtInfo *extinfo,
- Display *dpy)
+ const Display *dpy)
{
XDamageExtDisplayInfo *info;