From 142aa1230c651bc70d192edbbfa6870488006d36 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 26 Sep 2006 18:31:46 -0700 Subject: Fix sparse warnings: Using plain integer as NULL pointer --- src/XvMC.c | 4 ++-- 1 file 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; -- cgit v1.2.3