[PATCH xf86-video-siliconmotion 2/4] Fix BlockHandler declaration

Julien Cristau jcristau at debian.org
Fri May 8 04:59:22 PDT 2015


smi_video.c: In function 'SMI_SetupVideo':
smi_video.c:940:24: warning: assignment from incompatible pointer type
     pSmi->BlockHandler = pScreen->BlockHandler;
                        ^

Signed-off-by: Julien Cristau <jcristau at debian.org>
---
 src/smi.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/smi.h b/src/smi.h
index dce82e6..9d6671a 100644
--- a/src/smi.h
+++ b/src/smi.h
@@ -276,8 +276,7 @@ typedef struct
     Bool		interlaced;	/* True: Interlaced Video */
     XF86VideoAdaptorPtr	ptrAdaptor;	/* Pointer to VideoAdapter
 					   structure */
-    void (*BlockHandler)(int i, pointer blockData, pointer pTimeout,
-					 pointer pReadMask);
+    void (*BlockHandler)(BLOCKHANDLER_ARGS_DECL);
 #if SMI501_CLI_DEBUG
     /* SMI 501/502 Command List Interpreter */
     Bool		 batch_active;
-- 
2.1.4



More information about the xorg-devel mailing list