diff options
author | Dave Airlie <airlied@redhat.com> | 2015-08-13 09:25:36 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-08-17 18:23:55 -0700 |
commit | 7f506b8099d23c2f045ad26cc5cff00109b69d7b (patch) | |
tree | 38c90dd5f6247c6406570d3e84940633db86e3ea /miext | |
parent | b923443816320d0636d6fd40c3c1125b93332907 (diff) | |
download | xserver-7f506b8099d23c2f045ad26cc5cff00109b69d7b.tar.gz |
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>
Diffstat (limited to 'miext')
-rw-r--r-- | miext/rootless/rootlessCommon.h | 4 | ||||
-rw-r--r-- | miext/rootless/rootlessGC.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/miext/rootless/rootlessCommon.h b/miext/rootless/rootlessCommon.h index aa5557954..7c2611119 100644 --- a/miext/rootless/rootlessCommon.h +++ b/miext/rootless/rootlessCommon.h @@ -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 diff --git a/miext/rootless/rootlessGC.c b/miext/rootless/rootlessGC.c index 4fba26c8d..235b3ab7c 100644 --- a/miext/rootless/rootlessGC.c +++ b/miext/rootless/rootlessGC.c @@ -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; |