diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2007-12-29 00:02:16 +0200 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-12-29 00:02:16 +0200 |
commit | 9dbb73033ae60e7ab85f1469a696e2a52f0cb0fe (patch) | |
tree | 1a107a408e3ea03023286dae3ab879f9b4338b25 /miext | |
parent | 36ff05771b0699aa80ad718e24097bc25cb4fb00 (diff) |
Rootless: Fix lvalue error from devPrivates change
Instead of trying to use an invalid expression as an lvalue, use the function
call instead.
Diffstat (limited to 'miext')
-rw-r--r-- | miext/rootless/accel/rlAccel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/miext/rootless/accel/rlAccel.c b/miext/rootless/accel/rlAccel.c index a14412416..f3cb21569 100644 --- a/miext/rootless/accel/rlAccel.c +++ b/miext/rootless/accel/rlAccel.c @@ -51,6 +51,9 @@ static DevPrivateKey rlAccelScreenPrivateKey = &rlAccelScreenPrivateKey; #define RLACCELREC(pScreen) ((rlAccelScreenRec *) \ dixLookupPrivate(&(pScreen)->devPrivates, rlAccelScreenPrivateKey)) +#define SETRLACCELREC(pScreen, v) \ + dixSetPrivate(&(pScreen)->devPrivates, rlAccelScreenPrivateKey, v) + /* This is mostly identical to fbGCOps. */ static GCOps rlAccelOps = { rlFillSpans, @@ -132,7 +135,7 @@ RootlessAccelInit(ScreenPtr pScreen) s = xalloc(sizeof(rlAccelScreenRec)); if (!s) return FALSE; - RLACCELREC(pScreen) = s; + SETRLACCELREC(pScreen, s); // Wrap the screen functions we need s->CreateGC = pScreen->CreateGC; |