emotion/libvlc: fix C89
authorThomas Guillem <thomas@gllm.fr>
Fri, 25 Mar 2016 08:05:36 +0000 (09:05 +0100)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 28 Mar 2016 07:40:02 +0000 (16:40 +0900)
src/modules/emotion/libvlc/emotion_libvlc.c

index c18d5ed..d5fd847 100644 (file)
@@ -733,7 +733,7 @@ static Eina_Bool
 em_file_open(void *video,
              const char *file)
 {
-   int ret;
+   int ret, i;
    Emotion_LibVLC *ev = video;
    libvlc_event_manager_t *event_m;
 
@@ -766,7 +766,7 @@ em_file_open(void *video,
    EINA_SAFETY_ON_NULL_GOTO(ev->mp, error);
 
    event_m = libvlc_media_player_event_manager(ev->mp);
-   for (int i = 0; mp_events[i] != -1; ++i)
+   for (i = 0; mp_events[i] != -1; ++i)
      libvlc_event_attach(event_m, mp_events[i], libvlc_on_mp_event, ev);
 
    libvlc_media_player_set_video_title_display(ev->mp,
@@ -801,7 +801,7 @@ em_file_close(void *video)
         libvlc_event_manager_t *event_m;
 
         event_m = libvlc_media_player_event_manager(ev->mp);
-        for (int i = 0; mp_events[i] != -1; ++i)
+        for (i = 0; mp_events[i] != -1; ++i)
           libvlc_event_detach(event_m, mp_events[i], libvlc_on_mp_event, ev);
 
         /* Abort libvlc callbacks */