]> git.sesse.net Git - vlc/commitdiff
Fix messed up cast that breaks gcc 4
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Oct 2007 19:04:57 +0000 (19:04 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Oct 2007 19:04:57 +0000 (19:04 +0000)
modules/access/vcd/cdrom.c

index d1ac990aa584380778874409e0b5082a664be1f9..2cb0a548660c4e65ca151c552c5286947557cf1c 100644 (file)
@@ -1157,10 +1157,8 @@ static int win32_vcd_open( vlc_object_t * p_this, const char *psz_dev,
         hASPI = LoadLibrary( "wnaspi32.dll" );
         if( hASPI != NULL )
         {
-            (FARPROC) lpGetSupport = GetProcAddress( hASPI,
-                                                     "GetASPI32SupportInfo" );
-            (FARPROC) lpSendCommand = GetProcAddress( hASPI,
-                                                      "SendASPI32Command" );
+            lpGetSupport = (void *)GetProcAddress( hASPI, "GetASPI32SupportInfo" );
+            lpSendCommand = (void *)GetProcAddress( hASPI, "SendASPI32Command" );
         }
 
         if( hASPI == NULL || lpGetSupport == NULL || lpSendCommand == NULL )