changeset 22886:71b3e04d0555

"()" to "(void)" function param list fixes patch from Stefan Huehner, stefan huehner org
author uau
date Sun, 01 Apr 2007 21:59:54 +0000
parents 2fb21c753674
children dc3ff1498f69
files libass/ass_bitmap.c libass/ass_bitmap.h libass/ass_mp.c libass/ass_mp.h libass/ass_render.c libmpcodecs/ad_libdv.c libmpcodecs/vd_libdv.c libmpcodecs/vd_xanim.c libmpdemux/demux_mpg.c libvo/vo_directfb2.c libvo/vo_svga.c libvo/vo_x11.c libvo/x11_common.c libvo/x11_common.h mp_msg.c osdep/getch2-win.c osdep/getch2.c
diffstat 17 files changed, 22 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_bitmap.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libass/ass_bitmap.c	Sun Apr 01 21:59:54 2007 +0000
@@ -104,7 +104,7 @@
 	priv->tmp = malloc((priv->tmp_w + 1) * priv->tmp_h * sizeof(short));
 }
 
-ass_synth_priv_t* ass_synth_init()
+ass_synth_priv_t* ass_synth_init(void)
 {
 	ass_synth_priv_t* priv = calloc(1, sizeof(ass_synth_priv_t));
 	generate_tables(priv, blur_radius);
--- a/libass/ass_bitmap.h	Sun Apr 01 21:58:45 2007 +0000
+++ b/libass/ass_bitmap.h	Sun Apr 01 21:59:54 2007 +0000
@@ -23,7 +23,7 @@
 
 typedef struct ass_synth_priv_s ass_synth_priv_t;
 
-ass_synth_priv_t* ass_synth_init();
+ass_synth_priv_t* ass_synth_init(void);
 void ass_synth_done(ass_synth_priv_t* priv);
 
 typedef struct bitmap_s {
--- a/libass/ass_mp.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libass/ass_mp.c	Sun Apr 01 21:59:54 2007 +0000
@@ -240,7 +240,7 @@
 	free(family);
 }
 
-ass_library_t* ass_init() {
+ass_library_t* ass_init(void) {
 	ass_library_t* priv;
 	char* path = get_path("fonts");
 	priv = ass_library_init();
--- a/libass/ass_mp.h	Sun Apr 01 21:58:45 2007 +0000
+++ b/libass/ass_mp.h	Sun Apr 01 21:59:54 2007 +0000
@@ -42,7 +42,7 @@
 
 void ass_configure(ass_renderer_t* priv, int w, int h);
 void ass_configure_fonts(ass_renderer_t* priv);
-ass_library_t* ass_init();
+ass_library_t* ass_init(void);
 
 typedef struct {
 	ass_image_t* imgs;
--- a/libass/ass_render.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libass/ass_render.c	Sun Apr 01 21:59:54 2007 +0000
@@ -680,7 +680,7 @@
 	return a;
 }
 
-static void reset_render_context();
+static void reset_render_context(void);
 
 /**
  * \brief Parse style override tag.
@@ -1293,7 +1293,7 @@
  *   lines[].asc
  *   lines[].desc
  */
-static void measure_text()
+static void measure_text(void)
 {
 	int cur_line = 0, max_asc = 0, max_desc = 0;
 	int i;
--- a/libmpcodecs/ad_libdv.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libmpcodecs/ad_libdv.c	Sun Apr 01 21:59:54 2007 +0000
@@ -32,7 +32,7 @@
 LIBAD_EXTERN(libdv)
 
 // defined in vd_libdv.c:
-dv_decoder_t*  init_global_rawdv_decoder();
+dv_decoder_t*  init_global_rawdv_decoder(void);
 
 static int preinit(sh_audio_t *sh_audio)
 {
--- a/libmpcodecs/vd_libdv.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libmpcodecs/vd_libdv.c	Sun Apr 01 21:59:54 2007 +0000
@@ -36,7 +36,7 @@
 
 static dv_decoder_t* global_rawdv_decoder=NULL;
 
-dv_decoder_t* init_global_rawdv_decoder()
+dv_decoder_t* init_global_rawdv_decoder(void)
 {
  if(!global_rawdv_decoder){
    global_rawdv_decoder=dv_decoder_new(TRUE,TRUE,FALSE);
--- a/libmpcodecs/vd_xanim.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libmpcodecs/vd_xanim.c	Sun Apr 01 21:59:54 2007 +0000
@@ -356,12 +356,12 @@
 }
 
 
-unsigned long XA_Time_Read()
+unsigned long XA_Time_Read(void)
 {
     return GetTimer(); //(GetRelativeTime());
 }
 
-void XA_dummy()
+void XA_dummy(void)
 {
     XA_Print("dummy() called");
 }
--- a/libmpdemux/demux_mpg.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Sun Apr 01 21:59:54 2007 +0000
@@ -576,7 +576,7 @@
 
 static int num_mp3audio_packets=0;
 
-static void clear_stats()
+static void clear_stats(void)
 {
   num_elementary_packets100=0;
   num_elementary_packets101=0;
--- a/libvo/vo_directfb2.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libvo/vo_directfb2.c	Sun Apr 01 21:59:54 2007 +0000
@@ -139,7 +139,7 @@
 *	   implementation     *
 ******************************/
 
-void unlock() {
+void unlock(void) {
 if (frame && framelocked) frame->Unlock(frame);
 if (primary && primarylocked) primary->Unlock(primary);
 }
--- a/libvo/vo_svga.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libvo/vo_svga.c	Sun Apr 01 21:59:54 2007 +0000
@@ -109,7 +109,7 @@
 
 
 //return number of 1'st free page or -1 if no free one
-static inline int page_find_free(){
+static inline int page_find_free(void){
 int i;
   for(i=0;i<max_pages;i++)
     if(PageStore[i].locks == PAGE_EMPTY) return i;
--- a/libvo/vo_x11.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libvo/vo_x11.c	Sun Apr 01 21:59:54 2007 +0000
@@ -93,7 +93,7 @@
 static int old_vo_dwidth = -1;
 static int old_vo_dheight = -1;
 
-static void check_events()
+static void check_events(void)
 {
     int ret = vo_x11_check_events(mDisplay);
 
--- a/libvo/x11_common.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/libvo/x11_common.c	Sun Apr 01 21:59:54 2007 +0000
@@ -2287,7 +2287,7 @@
  * \brief Try to enable vsync for xv.
  * \return Returns -1 if not available, 0 on failure and 1 on success.
  */
-int vo_xv_enable_vsync()
+int vo_xv_enable_vsync(void)
 {
   Atom xv_atom = xv_intern_atom_if_exists("XV_SYNC_TO_VBLANK");
   if (xv_atom == None)
@@ -2343,7 +2343,7 @@
  * Outputs the content of |ck_handling| as a readable message.
  *
  */
-void vo_xv_print_ck_info()
+void vo_xv_print_ck_info(void)
 {
   mp_msg( MSGT_VO, MSGL_V, "[xv common] " );
 
@@ -2411,7 +2411,7 @@
  * NOTE: If vo_colorkey has bits set after the first 3 low order bytes
  *       we don't draw anything as this means it was forced to off.
  */
-int vo_xv_init_colorkey()
+int vo_xv_init_colorkey(void)
 {
   Atom xv_atom;
   int rez;
--- a/libvo/x11_common.h	Sun Apr 01 21:58:45 2007 +0000
+++ b/libvo/x11_common.h	Sun Apr 01 21:59:54 2007 +0000
@@ -74,7 +74,7 @@
 extern int vo_xv_set_eq(uint32_t xv_port, char * name, int value);
 extern int vo_xv_get_eq(uint32_t xv_port, char * name, int *value);
 
-extern int vo_xv_enable_vsync();
+extern int vo_xv_enable_vsync(void);
 
 extern void vo_xv_get_max_img_dim( uint32_t * width, uint32_t * height );
 
@@ -96,7 +96,7 @@
 extern xv_ck_info_t xv_ck_info;
 extern unsigned long xv_colorkey;
 
-extern int vo_xv_init_colorkey();
+extern int vo_xv_init_colorkey(void);
 extern void vo_xv_draw_colorkey(int32_t x, int32_t y, int32_t w, int32_t h);
 extern void xv_setup_colorkeyhandling(char const * ck_method_str, char const * ck_str);
 
--- a/mp_msg.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/mp_msg.c	Sun Apr 01 21:59:54 2007 +0000
@@ -11,7 +11,7 @@
 #ifdef USE_ICONV
 #include <iconv.h>
 #include <errno.h>
-extern char* get_term_charset();
+extern char* get_term_charset(void);
 #endif
 
 #if defined(FOR_MENCODER)
--- a/osdep/getch2-win.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/osdep/getch2-win.c	Sun Apr 01 21:59:54 2007 +0000
@@ -157,7 +157,7 @@
     { 0, NULL }
 };
  
-char* get_term_charset()
+char* get_term_charset(void)
 {
     static char codepage[10];
     unsigned i, cpno = GetConsoleOutputCP();
--- a/osdep/getch2.c	Sun Apr 01 21:58:45 2007 +0000
+++ b/osdep/getch2.c	Sun Apr 01 21:59:54 2007 +0000
@@ -244,7 +244,7 @@
 }
 
 #ifdef USE_ICONV
-char* get_term_charset()
+char* get_term_charset(void)
 {
     char* charset = NULL;
 #ifdef USE_LANGINFO