]> git.sesse.net Git - vlc/commitdiff
Win32 globalhotkeys: kill warnings
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 13 Aug 2010 18:29:44 +0000 (20:29 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 13 Aug 2010 18:29:44 +0000 (20:29 +0200)
modules/control/globalhotkeys/win32.c

index e5baeaf2be079dfcb7d86cd6d5c5b5909851325a..8e3aeafbf5b4b228e3556c7f4164a684d068e468 100644 (file)
@@ -168,7 +168,7 @@ static void *Thread( void *p_data )
             (LONG_PTR)p_intf );
 
     /* Registering of Hotkeys */
-    for( struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys;
+    for( const struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys;
             p_hotkey->psz_action != NULL;
             p_hotkey++ )
     {
@@ -262,7 +262,7 @@ static void *Thread( void *p_data )
         DispatchMessage( &message );
 
     /* Unregistering of Hotkeys */
-    for( struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys;
+    for( const struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys;
             p_hotkey->psz_action != NULL;
             p_hotkey++ )
     {
@@ -296,7 +296,7 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
 
                 LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA );
                 intf_thread_t *p_intf = (intf_thread_t*)ret;
-                struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
+                const struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
 
                 if( !GlobalGetAtomNameA(
                         wParam, psz_atomName, sizeof( psz_atomName ) ) )