summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-21 11:26:44 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-21 11:26:44 -0800
commitc0c02375b5a319fffe98b8f80ac3c25a8ab3e362 (patch)
treebf1bfcb1371e812e9902a7cd99aa2acfc0d289aa
parentd2d1e38e5cd7027c4ebe73d6b420a516f3c99c9d (diff)
Mark two dpy parameters const as suggested by cppcheck
Xcomposite.c:56:66: style: Parameter 'dpy' can be declared with const [constParameter] XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, Display *dpy) ^ Xcomposite.c:175:22: style: Parameter 'dpy' can be declared with const [constParameter] Display *dpy) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Xcomposite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xcomposite.c b/src/Xcomposite.c
index b107475..359cd08 100644
--- a/src/Xcomposite.c
+++ b/src/Xcomposite.c
@@ -53,7 +53,7 @@ const char XCompositeExtensionName[] = COMPOSITE_NAME;
* extension object. (Replaces XextRemoveDisplay.)
*/
static int
-XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, Display *dpy)
+XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, const Display *dpy)
{
XCompositeExtDisplayInfo *info, *prev;
@@ -172,7 +172,7 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo,
*/
static XCompositeExtDisplayInfo *
XCompositeExtFindDisplay (XCompositeExtInfo *extinfo,
- Display *dpy)
+ const Display *dpy)
{
XCompositeExtDisplayInfo *info;