diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-09-25 09:33:51 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-09-25 09:33:51 -0400 |
commit | 9bd04055a2175ec16756d3bf73ae03b5e163a28a (patch) | |
tree | 7b06855d79cc96e03f86e9f09257bd333b0dacae /include/dix.h | |
parent | a247886b082cea93fa8f8980616a9c388ba70111 (diff) |
xace: change prototype of VALIDATE_DRAWABLE_AND_GC macro to allow access
mode to be passed to dixLookupDrawable.
Diffstat (limited to 'include/dix.h')
-rw-r--r-- | include/dix.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/dix.h b/include/dix.h index 54629cd14..59533bae7 100644 --- a/include/dix.h +++ b/include/dix.h @@ -81,11 +81,9 @@ SOFTWARE. return(BadIDChoice);\ } -#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, pGC, client)\ +#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, mode)\ {\ - int rc;\ - rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY,\ - DixWriteAccess);\ + int rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY, mode);\ if (rc != Success)\ return rc;\ rc = dixLookupGC(&(pGC), stuff->gc, client, DixUseAccess);\ |