summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-09-26 18:31:46 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-09-26 18:31:46 -0700
commit142aa1230c651bc70d192edbbfa6870488006d36 (patch)
treeba71534e37d60b2cfd7a68c102688eb27e7180e8
parent945f89d551438298d9a09a4fd3e9e40ac6b1ad51 (diff)
Fix sparse warnings: Using plain integer as NULL pointer
-rw-r--r--src/XvMC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XvMC.c b/src/XvMC.c
index 16327c8..3d9b7b0 100644
--- a/src/XvMC.c
+++ b/src/XvMC.c
@@ -520,8 +520,8 @@ Status XvMCGetDRInfo(Display *dpy, XvPortID port,
*/
if (req->shmKey >= 0) {
- shMem = (CARD32 *) shmat(req->shmKey, 0, 0);
- shmctl( req->shmKey, IPC_RMID, 0);
+ shMem = (CARD32 *) shmat(req->shmKey, NULL, 0);
+ shmctl( req->shmKey, IPC_RMID, NULL);
if ( shMem ) {
register volatile CARD32 *shMemC = shMem;