]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/history.c
Remove qnx modules.
[vlc] / modules / codec / cmml / history.c
index c6c19563d513c611ea46bc224049078e0e088512..da82cbc5f5555195ea5dc7712f6d947239209099 100644 (file)
@@ -28,7 +28,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_input.h>
 
 #include "history.h"
@@ -36,7 +36,7 @@
 #include "xarray.h"
 
 #ifdef HAVE_STDLIB_H
-#   include <stdlib.h>                                          /* realloc() */
+#   include <stdlib.h>                                           /* malloc() */
 #endif
 
 #undef HISTORY_DEBUG
@@ -44,7 +44,9 @@
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
+#ifdef HISTORY_DEBUG
 static void history_Dump( history_t *p_history );
+#endif
 
 /*****************************************************************************
  * Local structure lock
@@ -68,16 +70,6 @@ history_t *history_New( void )
        return NULL;
    }
 
-#ifndef HISTORY_DEBUG
-   /* make dummy reference to history_Dump to avoid compiler warnings */
-   while (0)
-   {
-       void *p_tmp;
-
-       p_tmp = history_Dump;
-   }
-#endif
-
    return p_new_history;
 }
 
@@ -98,6 +90,7 @@ bool history_GoBackSavingCurrentItem ( history_t *p_history,
     return true;
 }
 
+#ifdef HISTORY_DEBUG
 static void history_Dump( history_t *p_history )
 {
     unsigned int i_count;
@@ -124,6 +117,7 @@ static void history_Dump( history_t *p_history )
         }
     }
 }
+#endif
 
 bool history_GoForwardSavingCurrentItem ( history_t *p_history,
                                                 history_item_t *p_item )