summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 10:40:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 10:40:43 -0800
commitaba73d85ce4a2fc1a5fb0ec27b15415eed21ebae (patch)
treec64be226240a385d12317781366b5665c4fb325d
parent82662a3129c59d5950b52ff4daf2e47c7a87327b (diff)
Mark two dpy parameters const as suggested by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Xfixes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xfixes.c b/src/Xfixes.c
index 2f73bcd..2ce8106 100644
--- a/src/Xfixes.c
+++ b/src/Xfixes.c
@@ -123,7 +123,7 @@ XFixesExtAddDisplay (XFixesExtInfo *extinfo,
* extension object. (Replaces XextRemoveDisplay.)
*/
static int
-XFixesExtRemoveDisplay (XFixesExtInfo *extinfo, Display *dpy)
+XFixesExtRemoveDisplay (XFixesExtInfo *extinfo, const Display *dpy)
{
XFixesExtDisplayInfo *info, *prev;
@@ -164,7 +164,7 @@ XFixesExtRemoveDisplay (XFixesExtInfo *extinfo, Display *dpy)
*/
static XFixesExtDisplayInfo *
XFixesExtFindDisplay (XFixesExtInfo *extinfo,
- Display *dpy)
+ const Display *dpy)
{
XFixesExtDisplayInfo *info;