rootless: fix warnings due to lack of const keeping.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 7f506b8099
)
This commit is contained in:
parent
02c94ccddf
commit
3aacda0aea
|
@ -70,8 +70,8 @@ extern DevPrivateKeyRec rootlessWindowOldPixmapPrivateKeyRec;
|
|||
|
||||
// RootlessGCRec: private per-gc data
|
||||
typedef struct {
|
||||
GCFuncs *originalFuncs;
|
||||
GCOps *originalOps;
|
||||
const GCFuncs *originalFuncs;
|
||||
const GCOps *originalOps;
|
||||
} RootlessGCRec;
|
||||
|
||||
// RootlessScreenRec: per-screen private data
|
||||
|
|
|
@ -403,7 +403,7 @@ RootlessCopyClip(GCPtr pgcDst, GCPtr pgcSrc)
|
|||
#define GCOP_UNWRAP(pGC) \
|
||||
RootlessGCRec *gcrec = (RootlessGCRec *) \
|
||||
dixLookupPrivate(&(pGC)->devPrivates, rootlessGCPrivateKey); \
|
||||
GCFuncs *saveFuncs = pGC->funcs; \
|
||||
const GCFuncs *saveFuncs = pGC->funcs; \
|
||||
(pGC)->funcs = gcrec->originalFuncs; \
|
||||
(pGC)->ops = gcrec->originalOps;
|
||||
|
||||
|
|
Loading…
Reference in New Issue