From 14ecba28e2d2846d0690ee86d3d01a1389558fd6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 16 Nov 2022 19:14:34 -0800 Subject: Mark two dpy parameters const as suggested by cppcheck Signed-off-by: Alan Coopersmith --- src/Xdamage.c | 4 ++-- 1 file 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; -- cgit v1.2.3