aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-09 14:08:03 +0000
committerGravatar rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-09 14:08:03 +0000
commite7db4ccf1afbb6653ae1aae44b1c96c724361985 (patch)
tree9cc7321a75460de67bd0dae4e940b73439a1374b
parent1f34ddefd2546a37c6efe4fcd9ea3f7627af4a5d (diff)
Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--codec-cfg.c2
-rw-r--r--codec-cfg.h2
-rw-r--r--cpudetect.c2
-rw-r--r--divx4_vbr.c10
-rw-r--r--divx4_vbr.h10
-rw-r--r--edl.c2
-rw-r--r--edl.h2
-rw-r--r--liba52/bitstream.c2
-rw-r--r--libao2/ao_alsa.c12
-rw-r--r--libao2/ao_arts.c10
-rw-r--r--libao2/ao_esd.c10
-rw-r--r--libao2/ao_mpegpes.c10
-rw-r--r--libao2/ao_nas.c10
-rw-r--r--libao2/ao_null.c12
-rw-r--r--libao2/ao_oss.c10
-rw-r--r--libao2/ao_pcm.c10
-rw-r--r--libao2/ao_sdl.c14
-rw-r--r--libao2/audio_out.c2
-rw-r--r--libao2/audio_out.h12
-rw-r--r--libao2/audio_out_internal.h12
-rw-r--r--libfaad2/ps_dec.c4
-rw-r--r--libmpcodecs/dec_audio.c4
-rw-r--r--libmpcodecs/dec_audio.h2
-rw-r--r--libmpcodecs/dec_video.c2
-rw-r--r--libmpcodecs/dec_video.h2
-rw-r--r--libmpcodecs/native/xa_gsm.c2
-rw-r--r--libmpcodecs/native/xa_gsm.h2
-rw-r--r--libmpcodecs/pullup.c2
-rw-r--r--libmpcodecs/pullup.h2
-rw-r--r--libmpcodecs/vf.c2
-rw-r--r--libmpcodecs/vf.h2
-rw-r--r--libmpcodecs/vf_pp7.c2
-rw-r--r--libmpcodecs/vf_scale.c2
-rw-r--r--libmpcodecs/vf_scale.h2
-rw-r--r--libmpcodecs/vf_test.c2
-rw-r--r--libmpdemux/cookies.c2
-rw-r--r--libmpdemux/cue_read.c6
-rw-r--r--libmpdemux/demux_ogg.c2
-rw-r--r--libmpdemux/demux_ty_osd.c6
-rw-r--r--libmpdemux/dvbin.c2
-rw-r--r--libmpdemux/dvbin.h2
-rw-r--r--libmpdemux/http.c2
-rw-r--r--libmpdemux/http.h2
-rw-r--r--libmpdemux/network.c2
-rw-r--r--libmpdemux/network.h2
-rw-r--r--libmpdemux/realrtsp/asmrp.c2
-rw-r--r--libmpdemux/tvi_def.h2
-rw-r--r--libmpdemux/yuv4mpeg.c2
-rw-r--r--libmpeg2/motion_comp_mmx.c2
-rw-r--r--libvo/font_load.h4
-rw-r--r--libvo/font_load_ft.c6
-rw-r--r--libvo/gl_common.c2
-rw-r--r--libvo/gl_common.h2
-rw-r--r--libvo/osd.c2
-rw-r--r--libvo/osd.h2
-rw-r--r--libvo/sub.c6
-rw-r--r--libvo/sub.h4
-rw-r--r--libvo/video_out.c2
-rw-r--r--libvo/video_out.h2
-rw-r--r--libvo/vo_aa.c4
-rw-r--r--libvo/vo_cvidix.c2
-rw-r--r--libvo/vo_gl.c6
-rw-r--r--libvo/vo_gl2.c6
-rw-r--r--libvo/vo_x11.c4
-rw-r--r--libvo/x11_common.c2
-rw-r--r--libvo/x11_common.h4
-rw-r--r--mencoder.c4
-rw-r--r--mp3lib/mp3.h14
-rw-r--r--mp3lib/sr1.c2
-rw-r--r--mp_msg.c2
-rw-r--r--mp_msg.h2
-rw-r--r--mplayer.c8
-rw-r--r--mplayer.h2
-rw-r--r--osdep/getch2.c6
-rw-r--r--osdep/getch2.h6
-rw-r--r--osdep/timer-lx.c8
-rw-r--r--osdep/timer.h8
-rw-r--r--postproc/swscale.c2
-rw-r--r--sub_cc.c6
-rw-r--r--sub_cc.h2
-rw-r--r--vidix/drivers/cyberblade_vid.c2
-rw-r--r--vidix/drivers/mach64_vid.c2
-rw-r--r--vidix/drivers/radeon_vid.c2
-rw-r--r--vidix/drivers/savage_vid.c16
-rw-r--r--vidix/drivers/sis_bridge.c14
-rw-r--r--vidix/drivers/sis_vid.c22
86 files changed, 208 insertions, 208 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index afa33e5626..275d973fda 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -747,7 +747,7 @@ static void codecs_free(codecs_t* codecs,int count) {
free(codecs);
}
-void codecs_uninit_free() {
+void codecs_uninit_free(void) {
if (video_codecs)
codecs_free(video_codecs,nr_vcodecs);
video_codecs=NULL;
diff --git a/codec-cfg.h b/codec-cfg.h
index 49e9e2551c..54531cb9eb 100644
--- a/codec-cfg.h
+++ b/codec-cfg.h
@@ -68,6 +68,6 @@ codecs_t* find_codec(unsigned int fourcc, unsigned int *fourccmap,
void select_codec(char* codecname,int audioflag);
void list_codecs(int audioflag);
void codecs_reset_selection(int audioflag);
-void codecs_uninit_free();
+void codecs_uninit_free(void);
#endif
diff --git a/cpudetect.c b/cpudetect.c
index 2261059ac1..ca00c8d7a3 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -45,7 +45,7 @@ static void check_os_katmai_support( void );
#if 1
// return TRUE if cpuid supported
-static int has_cpuid()
+static int has_cpuid(void)
{
long a, c;
diff --git a/divx4_vbr.c b/divx4_vbr.c
index 467f776910..f1d504cfed 100644
--- a/divx4_vbr.c
+++ b/divx4_vbr.c
@@ -316,17 +316,17 @@ int VbrControl_init_2pass_vbr_encoding(const char *filename, int bitrate, double
return 0;
}
-int VbrControl_get_intra()
+int VbrControl_get_intra(void)
{
return m_vFrames[m_iCount].is_key_frame;
}
-short VbrControl_get_drop()
+short VbrControl_get_drop(void)
{
return m_bDrop;
}
-int VbrControl_get_quant()
+int VbrControl_get_quant(void)
{
return m_iQuant;
}
@@ -340,7 +340,7 @@ void VbrControl_set_quant(float quant)
if(m_iQuant>max_quantizer) m_iQuant=max_quantizer;
}
-void VbrControl_update_1pass_vbr()
+void VbrControl_update_1pass_vbr(void)
{
VbrControl_set_quant(m_fQuant);
m_iCount++;
@@ -395,7 +395,7 @@ void VbrControl_update_2pass_vbr_encoding(int motion_bits, int texture_bits, int
fprintf(m_pFile, ", new quant %d\n", m_iQuant);
}
-void VbrControl_close()
+void VbrControl_close(void)
{
if(m_pFile)
{
diff --git a/divx4_vbr.h b/divx4_vbr.h
index 10a400fcd8..ee26b23a89 100644
--- a/divx4_vbr.h
+++ b/divx4_vbr.h
@@ -5,13 +5,13 @@
int VbrControl_init_2pass_vbr_encoding(const char* filename, int bitrate, double framerate, int crispness, int quality);
int VbrControl_init_2pass_vbr_analysis(const char* filename, int quality);
- void VbrControl_update_1pass_vbr();
+ void VbrControl_update_1pass_vbr(void);
void VbrControl_update_2pass_vbr_encoding(int motion_bits, int texture_bits, int total_bits);
void VbrControl_update_2pass_vbr_analysis(int is_key_frame, int motion_bits, int texture_bits, int total_bits, int quant);
- int VbrControl_get_quant();
+ int VbrControl_get_quant(void);
void VbrControl_set_quant(float q);
- int VbrControl_get_intra();
- short VbrControl_get_drop();
- void VbrControl_close();
+ int VbrControl_get_intra(void);
+ short VbrControl_get_drop(void);
+ void VbrControl_close(void);
diff --git a/edl.c b/edl.c
index 489d4a748a..de9c01d179 100644
--- a/edl.c
+++ b/edl.c
@@ -54,7 +54,7 @@ void free_edl(edl_record_ptr next_edl_record)
* \brief Fills EDL operations queue.
*/
-edl_record_ptr edl_parse_file()
+edl_record_ptr edl_parse_file(void)
{
FILE *fd;
char line[100];
diff --git a/edl.h b/edl.h
index 319558fc64..7b9d680b44 100644
--- a/edl.h
+++ b/edl.h
@@ -24,6 +24,6 @@ extern char *edl_filename; // file to extract EDL entries from (-edl)
extern char *edl_output_filename; // file to put EDL entries in (-edlout)
void free_edl(edl_record_ptr next_edl_record); // free's entire EDL list.
-edl_record_ptr edl_parse_file(); // fills EDL stack
+edl_record_ptr edl_parse_file(void); // fills EDL stack
#endif
diff --git a/liba52/bitstream.c b/liba52/bitstream.c
index dc7564aff0..3a25001c57 100644
--- a/liba52/bitstream.c
+++ b/liba52/bitstream.c
@@ -59,7 +59,7 @@ void bitstream_set_ptr (uint8_t * buf)
}
static inline void
-bitstream_fill_current()
+bitstream_fill_current(void)
{
uint32_t tmp;
diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c
index da0017d094..402f89264f 100644
--- a/libao2/ao_alsa.c
+++ b/libao2/ao_alsa.c
@@ -237,7 +237,7 @@ static void parse_device (char *dest, const char *src, int len)
tmp[0] = ':';
}
-static void print_help ()
+static void print_help (void)
{
mp_msg (MSGT_AO, MSGL_FATAL,
"\n-ao alsa commandline help:\n"
@@ -725,7 +725,7 @@ static void uninit(int immed)
}
}
-static void audio_pause()
+static void audio_pause(void)
{
int err;
@@ -745,7 +745,7 @@ static void audio_pause()
}
}
-static void audio_resume()
+static void audio_resume(void)
{
int err;
@@ -766,7 +766,7 @@ static void audio_resume()
}
/* stop playing and empty buffers (for seeking/pause) */
-static void reset()
+static void reset(void)
{
int err;
@@ -1030,7 +1030,7 @@ static int play_mmap(void* data, int len)
}
/* how many byes are free in the buffer */
-static int get_space()
+static int get_space(void)
{
snd_pcm_status_t *status;
int ret;
@@ -1100,7 +1100,7 @@ static int get_space()
}
/* delay in seconds between first and last sample in buffer */
-static float get_delay()
+static float get_delay(void)
{
if (alsa_handler) {
diff --git a/libao2/ao_arts.c b/libao2/ao_arts.c
index 35e678b9e0..96379560a0 100644
--- a/libao2/ao_arts.c
+++ b/libao2/ao_arts.c
@@ -112,24 +112,24 @@ static int play(void* data,int len,int flags)
return arts_write(stream, data, len);
}
-static void audio_pause()
+static void audio_pause(void)
{
}
-static void audio_resume()
+static void audio_resume(void)
{
}
-static void reset()
+static void reset(void)
{
}
-static int get_space()
+static int get_space(void)
{
return arts_stream_get(stream, ARTS_P_BUFFER_SPACE);
}
-static float get_delay()
+static float get_delay(void)
{
return ((float) (ao_data.buffersize - arts_stream_get(stream,
ARTS_P_BUFFER_SPACE))) / ((float) ao_data.bps);
diff --git a/libao2/ao_esd.c b/libao2/ao_esd.c
index 2ce2efc7c5..297787f6c8 100644
--- a/libao2/ao_esd.c
+++ b/libao2/ao_esd.c
@@ -346,7 +346,7 @@ static int play(void* data, int len, int flags)
/*
* stop playing, keep buffers (for pause)
*/
-static void audio_pause()
+static void audio_pause(void)
{
/*
* not possible with esd. the esd daemom will continue playing
@@ -358,7 +358,7 @@ static void audio_pause()
/*
* resume playing, after audio_pause()
*/
-static void audio_resume()
+static void audio_resume(void)
{
/*
* not possible with esd.
@@ -375,7 +375,7 @@ static void audio_resume()
/*
* stop playing and empty buffers (for seeking/pause)
*/
-static void reset()
+static void reset(void)
{
#ifdef __svr4__
/* throw away data buffered in the esd connection */
@@ -388,7 +388,7 @@ static void reset()
/*
* return: how many bytes can be played without blocking
*/
-static int get_space()
+static int get_space(void)
{
struct timeval tmout;
fd_set wfds;
@@ -432,7 +432,7 @@ static int get_space()
/*
* return: delay in seconds between first and last sample in buffer
*/
-static float get_delay()
+static float get_delay(void)
{
struct timeval now;
double buffered_samples_time;
diff --git a/libao2/ao_mpegpes.c b/libao2/ao_mpegpes.c
index 925d78b609..ec856a6671 100644
--- a/libao2/ao_mpegpes.c
+++ b/libao2/ao_mpegpes.c
@@ -137,19 +137,19 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
// for now, just call reset();
reset();
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
}
@@ -158,7 +158,7 @@ void send_lpcm_packet(unsigned char* data,int len,int id,int timestamp,int freq_
extern int vo_pts;
// return: how many bytes can be played without blocking
-static int get_space(){
+static int get_space(void){
float x=(float)(vo_pts-ao_data.pts)/90000.0;
int y;
// printf("vo_pts: %5.3f ao_pts: %5.3f\n",vo_pts/90000.0,ao_data.pts/90000.0);
@@ -189,7 +189,7 @@ static int play(void* data,int len,int flags){
}
// return: delay in seconds between first and last sample in buffer
-static float get_delay(){
+static float get_delay(void){
return 0.0;
}
diff --git a/libao2/ao_nas.c b/libao2/ao_nas.c
index f4c74dd7cb..aba055b683 100644
--- a/libao2/ao_nas.c
+++ b/libao2/ao_nas.c
@@ -506,7 +506,7 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
AuStatus as;
mp_msg(MSGT_AO, MSGL_DBG3, "ao_nas: reset()\n");
@@ -523,7 +523,7 @@ static void reset(){
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
AuStatus as;
mp_msg(MSGT_AO, MSGL_DBG3, "ao_nas: audio_pause()\n");
@@ -532,7 +532,7 @@ static void audio_pause()
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
AuStatus as;
@@ -546,7 +546,7 @@ static void audio_resume()
// return: how many bytes can be played without blocking
-static int get_space()
+static int get_space(void)
{
int result;
@@ -597,7 +597,7 @@ static int play(void* data,int len,int flags)
}
// return: delay in seconds between first and last sample in buffer
-static float get_delay()
+static float get_delay(void)
{
float result;
diff --git a/libao2/ao_null.c b/libao2/ao_null.c
index 70e3a52b31..7189d98fdf 100644
--- a/libao2/ao_null.c
+++ b/libao2/ao_null.c
@@ -20,7 +20,7 @@ LIBAO_EXTERN(null)
struct timeval last_tv;
int buffer;
-static void drain(){
+static void drain(void){
struct timeval now_tv;
int temp, temp2;
@@ -70,24 +70,24 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
buffer=0;
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
// for now, just call reset();
reset();
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
}
// return: how many bytes can be played without blocking
-static int get_space(){
+static int get_space(void){
drain();
return ao_data.buffersize - buffer;
@@ -106,7 +106,7 @@ static int play(void* data,int len,int flags){
}
// return: delay in seconds between first and last sample in buffer
-static float get_delay(){
+static float get_delay(void){
drain();
return (float) buffer / (float) ao_data.bps;
diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c
index 484f820ecf..b363808463 100644
--- a/libao2/ao_oss.c
+++ b/libao2/ao_oss.c
@@ -423,7 +423,7 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
int oss_format;
uninit(1);
audio_fd=open(dsp, O_WRONLY);
@@ -450,20 +450,20 @@ static void reset(){
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
uninit(1);
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
reset();
}
// return: how many bytes can be played without blocking
-static int get_space(){
+static int get_space(void){
int playsize=ao_data.outburst;
#ifdef SNDCTL_DSP_GETOSPACE
@@ -503,7 +503,7 @@ static int play(void* data,int len,int flags){
static int audio_delay_method=2;
// return: delay in seconds between first and last sample in buffer
-static float get_delay(){
+static float get_delay(void){
/* Calculate how many bytes/second is sent out */
if(audio_delay_method==2){
#ifdef SNDCTL_DSP_GETODELAY
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c
index 025c3b75ec..f6455bdb89 100644
--- a/libao2/ao_pcm.c
+++ b/libao2/ao_pcm.c
@@ -159,24 +159,24 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
// for now, just call reset();
reset();
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
}
// return: how many bytes can be played without blocking
-static int get_space(){
+static int get_space(void){
if(vo_pts)
return ao_data.pts < vo_pts ? ao_data.outburst : 0;
@@ -210,7 +210,7 @@ static int play(void* data,int len,int flags){
}
// return: delay in seconds between first and last sample in buffer
-static float get_delay(){
+static float get_delay(void){
return 0.0;
}
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c
index 7c079d2e06..9bb141ff6b 100644
--- a/libao2/ao_sdl.c
+++ b/libao2/ao_sdl.c
@@ -67,7 +67,7 @@ static unsigned char volume=SDL_MIX_MAXVOLUME;
// may only be called by mplayer's thread
// return value may change between immediately following two calls,
// and the real number of free bytes might be larger!
-static int buf_free() {
+static int buf_free(void) {
int free = read_pos - write_pos - CHUNK_SIZE;
if (free < 0) free += BUFFSIZE;
return free;
@@ -76,7 +76,7 @@ static int buf_free() {
// may only be called by SDL's playback thread
// return value may change between immediately following two calls,
// and the real number of buffered bytes might be larger!
-static int buf_used() {
+static int buf_used(void) {
int used = write_pos - read_pos;
if (used < 0) used += BUFFSIZE;
return used;
@@ -283,7 +283,7 @@ static void uninit(int immed){
}
// stop playing and empty buffers (for seeking/pause)
-static void reset(){
+static void reset(void){
//printf("SDL: reset called!\n");
@@ -295,7 +295,7 @@ static void reset(){
}
// stop playing, keep buffers (for pause)
-static void audio_pause()
+static void audio_pause(void)
{
//printf("SDL: audio_pause called!\n");
@@ -304,7 +304,7 @@ static void audio_pause()
}
// resume playing, after audio_pause()
-static void audio_resume()
+static void audio_resume(void)
{
//printf("SDL: audio_resume called!\n");
SDL_PauseAudio(0);
@@ -312,7 +312,7 @@ static void audio_resume()
// return: how many bytes can be played without blocking
-static int get_space(){
+static int get_space(void){
return buf_free();
}
@@ -338,7 +338,7 @@ static int play(void* data,int len,int flags){
}
// return: delay in seconds between first and last sample in buffer
-static float get_delay(){
+static float get_delay(void){
int buffered = BUFFSIZE - CHUNK_SIZE - buf_free(); // could be less
return (float)(buffered + ao_data.buffersize)/(float)ao_data.bps;
}
diff --git a/libao2/audio_out.c b/libao2/audio_out.c
index d152df612f..c5802006a7 100644
--- a/libao2/audio_out.c
+++ b/libao2/audio_out.c
@@ -126,7 +126,7 @@ ao_functions_t* audio_out_drivers[] =
NULL
};
-void list_audio_out(){
+void list_audio_out(void){
int i=0;
mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AvailableAudioOutputDrivers);
if (identify)
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index ced207a0e1..095b020247 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -21,12 +21,12 @@ typedef struct ao_functions_s
int (*control)(int cmd,void *arg);
int (*init)(int rate,int channels,int format,int flags);
void (*uninit)(int immed);
- void (*reset)();
- int (*get_space)();
+ void (*reset)(void);
+ int (*get_space)(void);
int (*play)(void* data,int len,int flags);
- float (*get_delay)();
- void (*pause)();
- void (*resume)();
+ float (*get_delay)(void);
+ void (*pause)(void);
+ void (*resume)(void);
} ao_functions_t;
/* global data used by mplayer and plugins */
@@ -44,7 +44,7 @@ typedef struct ao_data_s
extern char *ao_subdevice;
extern ao_data_t ao_data;
-void list_audio_out();
+void list_audio_out(void);
ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate,int channels,int format,int flags);
// NULL terminated array of all drivers
diff --git a/libao2/audio_out_internal.h b/libao2/audio_out_internal.h
index 8433ccf495..4ddd564914 100644
--- a/libao2/audio_out_internal.h
+++ b/libao2/audio_out_internal.h
@@ -3,13 +3,13 @@
//static ao_info_t info;
static int control(int cmd, void *arg);
static int init(int rate,int channels,int format,int flags);
-static void uninit();
-static void reset();
-static int get_space();
+static void uninit(int immed);
+static void reset(void);
+static int get_space(void);
static int play(void* data,int len,int flags);
-static float get_delay();
-static void audio_pause();
-static void audio_resume();
+static float get_delay(void);
+static void audio_pause(void);
+static void audio_resume(void);
#define LIBAO_EXTERN(x) ao_functions_t audio_out_##x =\
{\
diff --git a/libfaad2/ps_dec.c b/libfaad2/ps_dec.c
index bdc2ee27a9..881a581658 100644
--- a/libfaad2/ps_dec.c
+++ b/libfaad2/ps_dec.c
@@ -159,7 +159,7 @@ typedef struct
/* static function declarations */
static void ps_data_decode(ps_info *ps);
-static hyb_info *hybrid_init();
+static hyb_info *hybrid_init(void);
static void channel_filter2(hyb_info *hyb, uint8_t frame_len, const real_t *filter,
qmf_t *buffer, qmf_t **X_hybrid);
static void INLINE DCT3_4_unscaled(real_t *y, real_t *x);
@@ -189,7 +189,7 @@ static void ps_mix_phase(ps_info *ps, qmf_t X_left[38][64], qmf_t X_right[38][64
/* */
-static hyb_info *hybrid_init()
+static hyb_info *hybrid_init(void)
{
uint8_t i;
diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c
index 928a2bd9f7..6e391e19f1 100644
--- a/libmpcodecs/dec_audio.c
+++ b/libmpcodecs/dec_audio.c
@@ -29,7 +29,7 @@ int fakemono=0;
int audio_output_channels = 2;
af_cfg_t af_cfg = {1, NULL}; // Configuration for audio filters
-void afm_help(){
+void afm_help(void){
int i;
mp_msg(MSGT_DECAUDIO,MSGL_INFO,MSGTR_AvailableAudioFm);
if (identify)
@@ -434,6 +434,6 @@ void skip_audio_frame(sh_audio_t *sh_audio)
ds_fill_buffer(sh_audio->ds); // skip block
}
-void adjust_volume()
+void adjust_volume(void)
{
}
diff --git a/libmpcodecs/dec_audio.h b/libmpcodecs/dec_audio.h
index 2ee8688e52..0891cab55c 100644
--- a/libmpcodecs/dec_audio.h
+++ b/libmpcodecs/dec_audio.h
@@ -1,6 +1,6 @@
// dec_audio.c:
-extern void afm_help();
+extern void afm_help(void);
//extern int init_best_audio_codec(sh_audio_t *sh_audio,char* audio_codec,char* audio_fm);
extern int init_audio_codec(sh_audio_t *sh_audio);
extern int init_audio(sh_audio_t *sh_audio,char* codecname,char* afm,int status);
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c
index aae96588f1..7bee9379ab 100644
--- a/libmpcodecs/dec_video.c
+++ b/libmpcodecs/dec_video.c
@@ -149,7 +149,7 @@ void uninit_video(sh_video_t *sh_video){
sh_video->inited=0;
}
-void vfm_help(){
+void vfm_help(void){
int i;
mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_AvailableVideoFm);
if (identify)
diff --git a/libmpcodecs/dec_video.h b/libmpcodecs/dec_video.h
index 09f955d05c..8b0d513984 100644
--- a/libmpcodecs/dec_video.h
+++ b/libmpcodecs/dec_video.h
@@ -2,7 +2,7 @@
// dec_video.c:
extern int video_read_properties(sh_video_t *sh_video);
-extern void vfm_help();
+extern void vfm_help(void);
extern int init_best_video_codec(sh_video_t *sh_video,char** video_codec_list,char** video_fm_list);
diff --git a/libmpcodecs/native/xa_gsm.c b/libmpcodecs/native/xa_gsm.c
index 4c12d5471d..546edf81dc 100644
--- a/libmpcodecs/native/xa_gsm.c
+++ b/libmpcodecs/native/xa_gsm.c
@@ -40,7 +40,7 @@ static void Gsm_RPE_Decoding();
static XA_GSM_STATE gsm_state;
-void GSM_Init()
+void GSM_Init(void)
{
memset((char *)(&gsm_state), 0, sizeof(XA_GSM_STATE));
gsm_state.nrp = 40;
diff --git a/libmpcodecs/native/xa_gsm.h b/libmpcodecs/native/xa_gsm.h
index 212fbe0e97..232a7761e4 100644
--- a/libmpcodecs/native/xa_gsm.h
+++ b/libmpcodecs/native/xa_gsm.h
@@ -1,6 +1,6 @@
void XA_MSGSM_Decoder(unsigned char *ibuf,unsigned short *obuf);
void XA_GSM_Decoder(unsigned char *ibuf,unsigned short *obuf);
-void GSM_Init();
+void GSM_Init(void);
diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c
index 54466fe222..df4069cc67 100644
--- a/libmpcodecs/pullup.c
+++ b/libmpcodecs/pullup.c
@@ -733,7 +733,7 @@ void pullup_release_frame(struct pullup_frame *fr)
-struct pullup_context *pullup_alloc_context()
+struct pullup_context *pullup_alloc_context(void)
{
struct pullup_context *c;
diff --git a/libmpcodecs/pullup.h b/libmpcodecs/pullup.h
index f6cde2c39a..2f5b119949 100644
--- a/libmpcodecs/pullup.h
+++ b/libmpcodecs/pullup.h
@@ -75,7 +75,7 @@ struct pullup_frame *pullup_get_frame(struct pullup_context *c);
void pullup_pack_frame(struct pullup_context *c, struct pullup_frame *fr);
void pullup_release_frame(struct pullup_frame *fr);
-struct pullup_context *pullup_alloc_context();
+struct pullup_context *pullup_alloc_context(void);
void pullup_preinit_context(struct pullup_context *c);
void pullup_init_context(struct pullup_context *c);
void pullup_free_context(struct pullup_context *c);
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index 6b997cb114..5781dbb0f8 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -701,7 +701,7 @@ void vf_uninit_filter_chain(vf_instance_t* vf){
}
}
-void vf_list_plugins(){
+void vf_list_plugins(void){
int i=0;
while(filter_list[i]){
mp_msg(MSGT_VFILTER,MSGL_INFO,"\t%-10s: %s\n",filter_list[i]->name,filter_list[i]->info);
diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h
index 4df7cc06af..00a6cf2166 100644
--- a/libmpcodecs/vf.h
+++ b/libmpcodecs/vf.h
@@ -101,7 +101,7 @@ void vf_next_draw_slice (struct vf_instance_s* vf, unsigned char** src, int* str
vf_instance_t* append_filters(vf_instance_t* last);
-void vf_list_plugins();
+void vf_list_plugins(void);
void vf_uninit_filter(vf_instance_t* vf);
void vf_uninit_filter_chain(vf_instance_t* vf);
diff --git a/libmpcodecs/vf_pp7.c b/libmpcodecs/vf_pp7.c
index 395a720487..f0a744325c 100644
--- a/libmpcodecs/vf_pp7.c
+++ b/libmpcodecs/vf_pp7.c
@@ -212,7 +212,7 @@ static const int thres[16]={
static int thres2[99][16];
-static void init_thres2(){
+static void init_thres2(void){
int qp, i;
int bias= 0; //FIXME
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c
index 5a197fd1be..1bf477310b 100644
--- a/libmpcodecs/vf_scale.c
+++ b/libmpcodecs/vf_scale.c
@@ -492,7 +492,7 @@ int sws_chr_hshift= 0;
float sws_chr_sharpen= 0.0;
float sws_lum_sharpen= 0.0;
-int get_sws_cpuflags(){
+int get_sws_cpuflags(void){
return
(gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0)
| (gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0)
diff --git a/libmpcodecs/vf_scale.h b/libmpcodecs/vf_scale.h
index 8e863af8bc..5b6db0a06e 100644
--- a/libmpcodecs/vf_scale.h
+++ b/libmpcodecs/vf_scale.h
@@ -1,4 +1,4 @@
//GPL
-int get_sws_cpuflags();
+int get_sws_cpuflags(void);
struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
diff --git a/libmpcodecs/vf_test.c b/libmpcodecs/vf_test.c
index 8d34412815..ba4ffa1556 100644
--- a/libmpcodecs/vf_test.c
+++ b/libmpcodecs/vf_test.c
@@ -64,7 +64,7 @@ static int config(struct vf_instance_s* vf,
static double c[64];
-static void initIdct()
+static void initIdct(void)
{
int i;
diff --git a/libmpdemux/cookies.c b/libmpdemux/cookies.c
index ca328f9b4b..65745872d2 100644
--- a/libmpdemux/cookies.c
+++ b/libmpdemux/cookies.c
@@ -159,7 +159,7 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
}
/* Attempt to load cookies.txt from various locations. Returns a pointer to the linked list contain the cookies. */
-static struct cookie_list_type *load_cookies()
+static struct cookie_list_type *load_cookies(void)
{
DIR *dir;
struct dirent *ent;
diff --git a/libmpdemux/cue_read.c b/libmpdemux/cue_read.c
index 4485f2ddc3..ecd568fa27 100644
--- a/libmpdemux/cue_read.c
+++ b/libmpdemux/cue_read.c
@@ -268,7 +268,7 @@ static inline int cue_msf_2_sector(int minute, int second, int frame) {
return frame + (second + minute * 60 ) * 75;
}
-static inline int cue_get_msf() {
+static inline int cue_get_msf(void) {
return cue_msf_2_sector (cue_current_pos.minute,
cue_current_pos.second,
cue_current_pos.frame);
@@ -433,7 +433,7 @@ static int cue_read_cue (char *in_cue_filename)
-static int cue_read_toc_entry() {
+static int cue_read_toc_entry(void) {
int track = cue_current_pos.track - 1;
@@ -480,7 +480,7 @@ static int cue_vcd_get_track_end (int track){
return VCD_SECTOR_DATA * cue_get_msf();
}
-static void cue_vcd_read_toc(){
+static void cue_vcd_read_toc(void){
int i;
for (i = 0; i < nTracks; ++i) {
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index 084950bf53..f2424c4dff 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -221,7 +221,7 @@ uint64_t get_uint64 (const void *buf)
return (ret);
}
-void demux_ogg_init_sub () {
+void demux_ogg_init_sub (void) {
int lcv;
if(!ogg_sub.text[0]) // not yet allocated
for (lcv = 0; lcv < SUB_MAX_TEXT; lcv++) {
diff --git a/libmpdemux/demux_ty_osd.c b/libmpdemux/demux_ty_osd.c
index 17f27e429f..d68c7a5ff7 100644
--- a/libmpdemux/demux_ty_osd.c
+++ b/libmpdemux/demux_ty_osd.c
@@ -63,7 +63,7 @@ static subtitle *ty_pOSD2;
static int tyOSDInited = 0;
static int tyOSDUpdate = 0;
-static void ty_DrawOSD()
+static void ty_DrawOSD(void)
{
// printf( "Calling ty_DrawOSD()\n" );
tyOSDUpdate = 1;
@@ -161,7 +161,7 @@ static void ty_drawchar( char c )
*( TY_CC_ptr++ ) = ( c == 14 ) ? '/' : c; // swap a '/' for musical note
}
-static void ty_draw()
+static void ty_draw(void)
{
if ( TY_CC_ptr != TY_CC_buf && TY_OSD_flags & TY_TEXT_MODE )
{
@@ -513,7 +513,7 @@ static void ty_AddXDSToDisplay( char *format, ... )
}
-static void ty_DisplayXDSInfo()
+static void ty_DisplayXDSInfo(void)
{
int index;
int size;
diff --git a/libmpdemux/dvbin.c b/libmpdemux/dvbin.c
index d40073937c..0351aab5a2 100644
--- a/libmpdemux/dvbin.c
+++ b/libmpdemux/dvbin.c
@@ -767,7 +767,7 @@ static int dvb_open(stream_t *stream, int mode, void *opts, int *file_format)
}
#define MAX_CARDS 4
-dvb_config_t *dvb_get_config()
+dvb_config_t *dvb_get_config(void)
{
int i, fd, type, size;
char filename[30], *conf_file, *name;
diff --git a/libmpdemux/dvbin.h b/libmpdemux/dvbin.h
index a4795c42b7..02c75b67d4 100644
--- a/libmpdemux/dvbin.h
+++ b/libmpdemux/dvbin.h
@@ -109,6 +109,6 @@ typedef struct {
extern int dvb_step_channel(dvb_priv_t *, int);
extern int dvb_set_channel(dvb_priv_t *, int, int);
-extern dvb_config_t *dvb_get_config();
+extern dvb_config_t *dvb_get_config(void);
#endif
diff --git a/libmpdemux/http.c b/libmpdemux/http.c
index 914d8de9df..0cc1bb3633 100644
--- a/libmpdemux/http.c
+++ b/libmpdemux/http.c
@@ -279,7 +279,7 @@ static int nop_streaming_start( stream_t *stream ) {
}
HTTP_header_t *
-http_new_header() {
+http_new_header(void) {
HTTP_header_t *http_hdr;
http_hdr = (HTTP_header_t*)malloc(sizeof(HTTP_header_t));
diff --git a/libmpdemux/http.h b/libmpdemux/http.h
index b7332fe057..628de0f4e3 100644
--- a/libmpdemux/http.h
+++ b/libmpdemux/http.h
@@ -33,7 +33,7 @@ typedef struct {
unsigned int is_parsed;
} HTTP_header_t;
-HTTP_header_t* http_new_header();
+HTTP_header_t* http_new_header(void);
void http_free( HTTP_header_t *http_hdr );
int http_response_append( HTTP_header_t *http_hdr, char *data, int length );
int http_response_parse( HTTP_header_t *http_hdr );
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 5ec0c4c7f9..bd1c5e34e2 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -93,7 +93,7 @@ mime_struct_t mime_type_table[] = {
streaming_ctrl_t *
-streaming_ctrl_new( ) {
+streaming_ctrl_new(void) {
streaming_ctrl_t *streaming_ctrl;
streaming_ctrl = (streaming_ctrl_t*)malloc(sizeof(streaming_ctrl_t));
if( streaming_ctrl==NULL ) {
diff --git a/libmpdemux/network.h b/libmpdemux/network.h
index 0cebbcbc4e..0081c88256 100644
--- a/libmpdemux/network.h
+++ b/libmpdemux/network.h
@@ -50,7 +50,7 @@ typedef struct streaming_control {
} streaming_ctrl_t;
//int streaming_start( stream_t *stream, int *demuxer_type, URL_t *url );
-streaming_ctrl_t *streaming_ctrl_new();
+streaming_ctrl_t *streaming_ctrl_new(void);
int streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size);
int nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl );
diff --git a/libmpdemux/realrtsp/asmrp.c b/libmpdemux/realrtsp/asmrp.c
index d011458d45..05953daeb8 100644
--- a/libmpdemux/realrtsp/asmrp.c
+++ b/libmpdemux/realrtsp/asmrp.c
@@ -95,7 +95,7 @@ typedef struct {
} asmrp_t;
-static asmrp_t *asmrp_new () {
+static asmrp_t *asmrp_new (void) {
asmrp_t *p;
diff --git a/libmpdemux/tvi_def.h b/libmpdemux/tvi_def.h
index 8e84ad1493..27b797c603 100644
--- a/libmpdemux/tvi_def.h
+++ b/libmpdemux/tvi_def.h
@@ -28,7 +28,7 @@ static tvi_functions_t functions =
get_audio_framesize
};
-static tvi_handle_t *new_handle()
+static tvi_handle_t *new_handle(void)
{
tvi_handle_t *h = (tvi_handle_t *)malloc(sizeof(tvi_handle_t));
diff --git a/libmpdemux/yuv4mpeg.c b/libmpdemux/yuv4mpeg.c
index 3baac3eab9..f746da21c2 100644
--- a/libmpdemux/yuv4mpeg.c
+++ b/libmpdemux/yuv4mpeg.c
@@ -101,7 +101,7 @@ ssize_t y4m_write(int fd, char *buf, size_t len)
*************************************************************************/
-static char *y4m_new_xtag()
+static char *y4m_new_xtag(void)
{
return _y4m_alloc(Y4M_MAX_XTAG_SIZE * sizeof(char));
}
diff --git a/libmpeg2/motion_comp_mmx.c b/libmpeg2/motion_comp_mmx.c
index 9b73015d9b..8be581ad6a 100644
--- a/libmpeg2/motion_comp_mmx.c
+++ b/libmpeg2/motion_comp_mmx.c
@@ -67,7 +67,7 @@ static mmx_t round4 = {0x0002000200020002LL};
* unrolling will help
*/
-static inline void mmx_zero_reg ()
+static inline void mmx_zero_reg (void)
{
/* load 0 into mm0 */
pxor_r2r (mm0, mm0);
diff --git a/libvo/font_load.h b/libvo/font_load.h
index b2afd64308..b125b9db7b 100644
--- a/libvo/font_load.h
+++ b/libvo/font_load.h
@@ -77,8 +77,8 @@ extern int vo_image_height;
extern int force_load_font;
-int init_freetype();
-int done_freetype();
+int init_freetype(void);
+int done_freetype(void);
font_desc_t* read_font_desc_ft(char* fname,int movie_width, int movie_height);
void free_font_desc(font_desc_t *desc);
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c
index 81d65bf357..d29ad899a7 100644
--- a/libvo/font_load_ft.c
+++ b/libvo/font_load_ft.c
@@ -831,7 +831,7 @@ static int prepare_charset_unicode(FT_Face face, FT_ULong *charset, FT_ULong *ch
return i;
}
-static font_desc_t* init_font_desc()
+static font_desc_t* init_font_desc(void)
{
font_desc_t *desc;
int i;
@@ -1089,7 +1089,7 @@ gen_osd:
return desc;
}
-int init_freetype()
+int init_freetype(void)
{
int err;
@@ -1104,7 +1104,7 @@ int init_freetype()
return 0;
}
-int done_freetype()
+int done_freetype(void)
{
int err;
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index f544120f68..0c0c369395 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -1144,7 +1144,7 @@ void releaseGlContext(XVisualInfo **vinfo, GLXContext *context) {
*context = 0;
}
-void swapGlBuffers() {
+void swapGlBuffers(void) {
glXSwapBuffers(mDisplay, vo_window);
}
#endif
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index 15dd1f8bfa..926121ac65 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -245,7 +245,7 @@ void releaseGlContext(int *vinfo, HGLRC *context);
int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win);
void releaseGlContext(XVisualInfo **vinfo, GLXContext *context);
#endif
-void swapGlBuffers();
+void swapGlBuffers(void);
extern void (APIENTRY *GenBuffers)(GLsizei, GLuint *);
extern void (APIENTRY *DeleteBuffers)(GLsizei, const GLuint *);
diff --git a/libvo/osd.c b/libvo/osd.c
index 6e11a81b90..f73631a161 100644
--- a/libvo/osd.c
+++ b/libvo/osd.c
@@ -258,7 +258,7 @@ static unsigned short fast_osd_15bpp_table[256];
static unsigned short fast_osd_16bpp_table[256];
#endif
-void vo_draw_alpha_init(){
+void vo_draw_alpha_init(void){
#ifdef FAST_OSD_TABLE
int i;
for(i=0;i<256;i++){
diff --git a/libvo/osd.h b/libvo/osd.h
index 80bb457a74..36ff2e68d3 100644
--- a/libvo/osd.h
+++ b/libvo/osd.h
@@ -5,7 +5,7 @@
// Generic alpha renderers for all YUV modes and RGB depths.
// These are "reference implementations", should be optimized later (MMX, etc)
-extern void vo_draw_alpha_init(); // build tables
+extern void vo_draw_alpha_init(void); // build tables
extern void vo_draw_alpha_yv12(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride);
extern void vo_draw_alpha_yuy2(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride);
diff --git a/libvo/sub.c b/libvo/sub.c
index 73d4ed28aa..2f2d664998 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -731,7 +731,7 @@ void *vo_vobsub=NULL;
static int draw_alpha_init_flag=0;
-extern void vo_draw_alpha_init();
+extern void vo_draw_alpha_init(void);
mp_osd_obj_t* vo_osd_list=NULL;
@@ -747,7 +747,7 @@ mp_osd_obj_t* new_osd_obj(int type){
return osd;
}
-void free_osd_list(){
+void free_osd_list(void){
mp_osd_obj_t* obj=vo_osd_list;
while(obj){
mp_osd_obj_t* next=obj->next;
@@ -857,7 +857,7 @@ int vo_update_osd(int dxs,int dys){
return chg;
}
-void vo_init_osd(){
+void vo_init_osd(void){
if(!draw_alpha_init_flag){
draw_alpha_init_flag=1;
vo_draw_alpha_init();
diff --git a/libvo/sub.h b/libvo/sub.h
index f82d51d86d..204be88c46 100644
--- a/libvo/sub.h
+++ b/libvo/sub.h
@@ -113,11 +113,11 @@ extern float spu_gaussvar;
extern void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
extern void vo_remove_text(int dxs,int dys,void (*remove)(int x0,int y0, int w,int h));
-void vo_init_osd();
+void vo_init_osd(void);
int vo_update_osd(int dxs,int dys);
int vo_osd_changed(int new_value);
int vo_osd_check_range_update(int,int,int,int);
-void free_osd_list();
+void free_osd_list(void);
extern int vo_osd_changed_flag;
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 80d61af1b5..8df9bc878a 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -256,7 +256,7 @@ vo_functions_t* video_out_drivers[] =
NULL
};
-void list_video_out(){
+void list_video_out(void){
int i=0;
mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_AvailableVideoOutputDrivers);
if (identify)
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 3f6ba5e21a..f042c602d7 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -170,7 +170,7 @@ char *vo_format_name(int format);
int vo_init(void);
vo_functions_t* init_best_video_out(char** vo_list);
-void list_video_out();
+void list_video_out(void);
// NULL terminated array of all drivers
extern vo_functions_t* video_out_drivers[];
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index b75d174eec..4e23247bdf 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -191,7 +191,7 @@ osdpercent(int duration, int deko, int min, int max, int val, char * desc, char
}
void
-printosdtext()
+printosdtext(void)
{
if(osd_text_length > 0 && !vo_osd_text) {
memset(c->textbuffer,' ',osd_text_length);
@@ -221,7 +221,7 @@ printosdtext()
}
void
-printosdprogbar(){
+printosdprogbar(void){
/* print mplayer osd-progbar */
if (vo_osd_progbar_type!=-1){
osdpercent(1,1,0,255,vo_osd_progbar_value, __sub_osd_names[vo_osd_progbar_type], "");
diff --git a/libvo/vo_cvidix.c b/libvo/vo_cvidix.c
index fea52ca3ec..18b7b364a8 100644
--- a/libvo/vo_cvidix.c
+++ b/libvo/vo_cvidix.c
@@ -45,7 +45,7 @@ static uint32_t center=0;
static vidix_grkey_t gr_key;
-static uint32_t setup_vidix(){
+static uint32_t setup_vidix(void){
int x=vo_dx,y=vo_dy;
aspect(&vo_dwidth,&vo_dheight,vo_fs ? A_ZOOM : A_NOZOOM);
if(vo_fs || center){
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 9fb7e829a5..e30ab107d3 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -147,7 +147,7 @@ static void texSize(int w, int h, int *texw, int *texh) {
//! maximum size of custom fragment program
#define MAX_CUSTOM_PROG_SIZE (1024 * 1024)
-static void update_yuvconv() {
+static void update_yuvconv(void) {
float bri = eq_bri / 100.0;
float cont = (eq_cont + 100) / 100.0;
float hue = eq_hue / 100.0 * 3.1415927;
@@ -203,7 +203,7 @@ static void update_yuvconv() {
/**
* \brief remove all OSD textures and display-lists, thus clearing it.
*/
-static void clearOSD() {
+static void clearOSD(void) {
int i;
glDeleteTextures(osdtexCnt, osdtex);
#ifndef FAST_OSD
@@ -217,7 +217,7 @@ static void clearOSD() {
/**
* \brief uninitialize OpenGL context, freeing textures, buffers etc.
*/
-static void uninitGl() {
+static void uninitGl(void) {
if (DeletePrograms && fragprog)
DeletePrograms(1, &fragprog);
fragprog = 0;
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 6274cf27e9..6b5396a855 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -100,7 +100,7 @@ struct TexSquare
int dirtyXoff, dirtyYoff, dirtyWidth, dirtyHeight;
};
-static GLint getInternalFormat()
+static GLint getInternalFormat(void)
{
#ifdef GL_WIN32
PIXELFORMATDESCRIPTOR pfd;
@@ -150,7 +150,7 @@ static GLint getInternalFormat()
return GL_RGB;
}
-static int initTextures()
+static int initTextures(void)
{
struct TexSquare *tsq=0;
GLfloat texpercx, texpercy;
@@ -467,7 +467,7 @@ static void gl_set_antialias (int val)
}
-static void drawTextureDisplay ()
+static void drawTextureDisplay (void)
{
struct TexSquare *square = texgrid;
int x, y/*, xoff=0, yoff=0, wd, ht*/;
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 030c6ab9bd..2002582d39 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -148,7 +148,7 @@ extern int sws_flags;
static XVisualInfo vinfo;
-static void getMyXImage()
+static void getMyXImage(void)
{
#ifdef HAVE_SHM
if (mLocalDisplay && XShmQueryExtension(mDisplay))
@@ -238,7 +238,7 @@ static void getMyXImage()
#endif
}
-static void freeMyXImage()
+static void freeMyXImage(void)
{
#ifdef HAVE_SHM
if (Shmem_Flag)
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 97f3ba941f..04a04d2b7e 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -940,7 +940,7 @@ void vo_setwindow(Window w, GC g)
}
#endif
-void vo_x11_uninit()
+void vo_x11_uninit(void)
{
saver_on(mDisplay);
if (vo_window != None)
diff --git a/libvo/x11_common.h b/libvo/x11_common.h
index 2c2c4b2d74..e5ea5f1f24 100644
--- a/libvo/x11_common.h
+++ b/libvo/x11_common.h
@@ -48,7 +48,7 @@ extern int vo_x11_check_events(Display *mydisplay);
extern void vo_x11_selectinput_witherr(Display *display, Window w, long event_mask);
extern void vo_x11_fullscreen( void );
extern void vo_x11_setlayer( Display * mDisplay,Window vo_window,int layer );
-extern void vo_x11_uninit();
+extern void vo_x11_uninit(void);
extern Colormap vo_x11_create_colormap(XVisualInfo *vinfo);
extern uint32_t vo_x11_set_equalizer(char *name, int value);
extern uint32_t vo_x11_get_equalizer(char *name, int *value);
@@ -59,7 +59,7 @@ extern Window vo_x11_create_smooth_window( Display *mDisplay, Window mRoot,
extern void vo_x11_clearwindow_part(Display *mDisplay, Window vo_window,
int img_width, int img_height, int use_fs);
extern void vo_x11_clearwindow( Display *mDisplay, Window vo_window );
-extern void vo_x11_ontop();
+extern void vo_x11_ontop(void);
extern void vo_x11_ewmh_fullscreen( int action );
#endif
diff --git a/mencoder.c b/mencoder.c
index b2521c6329..bd27465041 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -240,7 +240,7 @@ static off_t seek_to_byte=0;
static char * frameno_filename=NULL;
-static void parse_end_at();
+static void parse_end_at(void);
static char * end_at_string=0;
//static uint8_t* flip_upside_down(uint8_t* dst, const uint8_t* src, int width, int height);
@@ -1571,7 +1571,7 @@ if(stream) free_stream(stream); // kill cache thread
return interrupted;
}
-static void parse_end_at()
+static void parse_end_at(void)
{
end_at_type = END_AT_NONE;
diff --git a/mp3lib/mp3.h b/mp3lib/mp3.h
index 308c8187af..2e9a1312bc 100644
--- a/mp3lib/mp3.h
+++ b/mp3lib/mp3.h
@@ -9,11 +9,11 @@ extern void MP3_Init();
extern int MP3_Open(char *filename,int buffsize);
extern void MP3_SeekFrame(int num,int dir);
extern void MP3_SeekForward(int num);
-extern int MP3_PrintTAG();
+extern int MP3_PrintTAG(void);
extern int MP3_DecodeFrame(unsigned char *hova,short single);
-extern int MP3_FillBuffers();
-extern void MP3_PrintHeader();
-extern void MP3_Close();
+extern int MP3_FillBuffers(void);
+extern void MP3_PrintHeader(void);
+extern void MP3_Close(void);
/* public variables: */
extern int MP3_eof; // set if EOF reached
extern int MP3_pause; // lock playing
@@ -29,7 +29,7 @@ extern int MP3_bps;
/* player level: */
extern int MP3_OpenDevice(char *devname); /* devname can be NULL for default) */
-extern void MP3_Play();
-extern void MP3_Stop();
-extern void MP3_CloseDevice();
+extern void MP3_Play(void);
+extern void MP3_Stop(void);
+extern void MP3_CloseDevice(void);
diff --git a/mp3lib/sr1.c b/mp3lib/sr1.c
index 87ab7dc4b7..9ac4bf4065 100644
--- a/mp3lib/sr1.c
+++ b/mp3lib/sr1.c
@@ -523,7 +523,7 @@ int MP3_DecodeFrame(unsigned char *hova,short single){
}
// Prints last frame header in ascii.
-void MP3_PrintHeader(){
+void MP3_PrintHeader(void){
static char *modes[4] = { "Stereo", "Joint-Stereo", "Dual-Channel", "Single-Channel" };
static char *layers[4] = { "???" , "I", "II", "III" };
diff --git a/mp_msg.c b/mp_msg.c
index 23f422407c..ed98c70214 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -24,7 +24,7 @@ int mp_msg_levels[MSGT_MAX]; // verbose level of this module. inited to 2
int mp_msg_level_all = MSGL_STATUS;
int verbose = 0;
-void mp_msg_init(){
+void mp_msg_init(void){
int i;
char *env = getenv("MPLAYER_VERBOSE");
if (env)
diff --git a/mp_msg.h b/mp_msg.h
index 3f907cb00c..a5faf9ad92 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -94,7 +94,7 @@ extern int identify;
#define MSGT_MAX 64
-void mp_msg_init();
+void mp_msg_init(void);
int mp_msg_test(int mod, int lev);
#include "config.h"
diff --git a/mplayer.c b/mplayer.c
index c9b048b591..a0ecc2f0e6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -189,7 +189,7 @@ static int max_framesize=0;
#include "libmpcodecs/vf.h"
#include "libmpcodecs/vd.h"
-extern void vf_list_plugins();
+extern void vf_list_plugins(void);
//**************************************************************************//
//**************************************************************************//
@@ -764,7 +764,7 @@ int playtree_add_playlist(play_tree_t* entry)
static int play_tree_step = 1;
-int sub_source()
+int sub_source(void)
{
int source = -1;
int top = -1;
@@ -807,7 +807,7 @@ void add_subtitles(char *filename, float fps, int silent)
}
// FIXME: if/when the GUI calls this, global sub numbering gets (potentially) broken.
-void update_set_of_subtitles()
+void update_set_of_subtitles(void)
// subdata was changed, set_of_sub... have to be updated.
{
int i;
@@ -1022,7 +1022,7 @@ static int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
* which need to be fixed while watching the movie.
*/
-static void log_sub(){
+static void log_sub(void){
char *fname;
FILE *f;
int i;
diff --git a/mplayer.h b/mplayer.h
index d27a454128..3719e0efc9 100644
--- a/mplayer.h
+++ b/mplayer.h
@@ -59,6 +59,6 @@ extern int dvdsub_id;
extern int vobsub_id;
extern void exit_player(char* how);
-extern void update_set_of_subtitles();
+extern void update_set_of_subtitles(void);
#endif
diff --git a/osdep/getch2.c b/osdep/getch2.c
index 4c40b055c6..32cd74f033 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -118,7 +118,7 @@ int load_termcap(char *termtype){
#endif
-void get_screen_size(){
+void get_screen_size(void){
#ifdef USE_IOCTL
struct winsize ws;
if (ioctl(0, TIOCGWINSZ, &ws) < 0 || !ws.ws_row || !ws.ws_col) return;
@@ -217,7 +217,7 @@ found:
static int getch2_status=0;
-void getch2_enable(){
+void getch2_enable(void){
#ifdef HAVE_TERMIOS
struct termios tio_new;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GLIBC__) || defined(_AIX)
@@ -242,7 +242,7 @@ struct termios tio_new;
getch2_status=1;
}
-void getch2_disable(){
+void getch2_disable(void){
if(!getch2_status) return; // already disabled / never enabled
#ifdef HAVE_TERMIOS
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GLIBC__) || defined(_AIX)
diff --git a/osdep/getch2.h b/osdep/getch2.h
index 49743f2ecf..75bf463cc1 100644
--- a/osdep/getch2.h
+++ b/osdep/getch2.h
@@ -9,14 +9,14 @@ extern int screen_height;
extern char * erase_to_end_of_line;
/* Get screen-size using IOCTL call. */
-extern void get_screen_size();
+extern void get_screen_size(void);
/* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
extern int load_termcap(char *termtype);
/* Enable and disable STDIN line-buffering */
-extern void getch2_enable();
-extern void getch2_disable();
+extern void getch2_enable(void);
+extern void getch2_disable(void);
/* Read a character or a special key code (see keycodes.h) */
extern int getch2(int halfdelay_time);
diff --git a/osdep/timer-lx.c b/osdep/timer-lx.c
index 104cd97391..10f95be54b 100644
--- a/osdep/timer-lx.c
+++ b/osdep/timer-lx.c
@@ -29,7 +29,7 @@ int usec_sleep(int usec_delay)
}
// Returns current time in microseconds
-unsigned int GetTimer(){
+unsigned int GetTimer(void){
struct timeval tv;
struct timezone tz;
// float s;
@@ -39,7 +39,7 @@ unsigned int GetTimer(){
}
// Returns current time in milliseconds
-unsigned int GetTimerMS(){
+unsigned int GetTimerMS(void){
struct timeval tv;
struct timezone tz;
// float s;
@@ -51,7 +51,7 @@ unsigned int GetTimerMS(){
static unsigned int RelativeTime=0;
// Returns time spent between now and last call in seconds
-float GetRelativeTime(){
+float GetRelativeTime(void){
unsigned int t,r;
t=GetTimer();
// t*=16;printf("time=%ud\n",t);
@@ -61,7 +61,7 @@ unsigned int t,r;
}
// Initialize timer, must be called at least once at start
-void InitTimer(){
+void InitTimer(void){
GetRelativeTime();
}
diff --git a/osdep/timer.h b/osdep/timer.h
index 1e181650c1..c45ebc754b 100644
--- a/osdep/timer.h
+++ b/osdep/timer.h
@@ -3,11 +3,11 @@
extern const char *timer_name;
-void InitTimer();
-unsigned int GetTimer();
-unsigned int GetTimerMS();
+void InitTimer(void);
+unsigned int GetTimer(void);
+unsigned int GetTimerMS(void);
//int uGetTimer();
-float GetRelativeTime();
+float GetRelativeTime(void);
int usec_sleep(int usec_delay);
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 2b0d585b1a..e4537f7bf2 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -1375,7 +1375,7 @@ static void initMMX2HScaler(int dstW, int xInc, uint8_t *funnyCode, int16_t *fil
}
#endif // ARCH_X86 || ARCH_X86_64
-static void globalInit(){
+static void globalInit(void){
// generating tables:
int i;
for(i=0; i<768; i++){
diff --git a/sub_cc.c b/sub_cc.c
index 9f263aba66..422d045ef8 100644
--- a/sub_cc.c
+++ b/sub_cc.c
@@ -67,7 +67,7 @@ static void clear_buffer(subtitle *buf)
}
-void subcc_init()
+void subcc_init(void)
{
int i;
//printf("subcc_init(): initing...\n");
@@ -107,7 +107,7 @@ static void append_char(char c)
}
-static void swap_buffers()
+static void swap_buffers(void)
{
subtitle *foo;
foo=fb;
@@ -185,7 +185,7 @@ static void cc_decode_EIA608(unsigned short int data)
lastcode=data;
}
-static void subcc_decode()
+static void subcc_decode(void)
{
/* The first number may denote a channel number. I don't have the
* EIA-708 standard, so it is hard to say.
diff --git a/sub_cc.h b/sub_cc.h
index 837e9c3fd0..99e70c7920 100644
--- a/sub_cc.h
+++ b/sub_cc.h
@@ -3,7 +3,7 @@
extern int subcc_enabled;
-void subcc_init();
+void subcc_init(void);
void subcc_process_data(unsigned char *inputdata,unsigned int len);
#endif /*SUB_CC_H*/
diff --git a/vidix/drivers/cyberblade_vid.c b/vidix/drivers/cyberblade_vid.c
index 41984644ed..4dfb59d651 100644
--- a/vidix/drivers/cyberblade_vid.c
+++ b/vidix/drivers/cyberblade_vid.c
@@ -94,7 +94,7 @@ static void SROUTW(int reg,int val)
SROUTB(reg+1,(val>>8)&255);
}
-void DumpRegisters()
+void DumpRegisters(void)
{
int reg,val;
#ifdef DEBUG_LOGFILE
diff --git a/vidix/drivers/mach64_vid.c b/vidix/drivers/mach64_vid.c
index 2bde0803b6..1c43bdeef4 100644
--- a/vidix/drivers/mach64_vid.c
+++ b/vidix/drivers/mach64_vid.c
@@ -304,7 +304,7 @@ static int mach64_get_vert_stretch(void)
return ret;
}
-static void mach64_vid_make_default()
+static void mach64_vid_make_default(void)
{
mach64_fifo_wait(5);
OUTREG(SCALER_COLOUR_CNTL,0x00101000);
diff --git a/vidix/drivers/radeon_vid.c b/vidix/drivers/radeon_vid.c
index 57dabec974..4a8c095d48 100644
--- a/vidix/drivers/radeon_vid.c
+++ b/vidix/drivers/radeon_vid.c
@@ -950,7 +950,7 @@ vidix_capability_t def_cap =
};
#ifdef HAVE_X11
-void probe_fireGL_driver() {
+void probe_fireGL_driver(void) {
Display *dp = XOpenDisplay ((void*)0);
int n = 0;
char **extlist;
diff --git a/vidix/drivers/savage_vid.c b/vidix/drivers/savage_vid.c
index 68406ad084..ac19266591 100644
--- a/vidix/drivers/savage_vid.c
+++ b/vidix/drivers/savage_vid.c
@@ -82,7 +82,7 @@
/* CR69[0] = 1 : Mem-mapped regs */
#define USE_MM_FOR_PRI_STREAM_OLD 0x01
-void SavageStreamsOn();
+void SavageStreamsOn(void);
/*
* There are two different streams engines used in the Savage line.
@@ -323,7 +323,7 @@ static struct savage_cards savage_card_ids[] = {
{ PCI_CHIP_PROSAVAGE_DDRK , S3_PROSAVAGE },
};
-void SavageSetColorOld()
+void SavageSetColorOld(void)
{
@@ -360,7 +360,7 @@ void SavageSetColorOld()
}
}
-void SavageSetColorKeyOld()
+void SavageSetColorKeyOld(void)
{
int red, green, blue;
@@ -421,8 +421,8 @@ void SavageSetColorKeyOld()
static void
-SavageDisplayVideoOld(
-){
+SavageDisplayVideoOld(void)
+{
int vgaCRIndex, vgaCRReg, vgaIOBase;
unsigned int ssControl;
int cr92;
@@ -528,7 +528,7 @@ SavageDisplayVideoOld(
}
-void SavageInitStreamsOld()
+void SavageInitStreamsOld(void)
{
/*unsigned long jDelta;*/
unsigned long format = 0;
@@ -582,7 +582,7 @@ void SavageInitStreamsOld()
}
void
-SavageStreamsOn()
+SavageStreamsOn(void)
{
unsigned char jStreamsControl;
unsigned short vgaCRIndex = 0x3d0 + 4;
@@ -726,7 +726,7 @@ static void savage_getscreenproperties(struct savage_info *info){
}
-void SavageStreamsOff()
+void SavageStreamsOff(void)
{
unsigned char jStreamsControl;
unsigned short vgaCRIndex = 0x3d0 + 4;
diff --git a/vidix/drivers/sis_bridge.c b/vidix/drivers/sis_bridge.c
index 68660f22dd..0ac37cf328 100644
--- a/vidix/drivers/sis_bridge.c
+++ b/vidix/drivers/sis_bridge.c
@@ -60,7 +60,7 @@ static int sis_do_sense(int tempbl, int tempbh, int tempcl, int tempch)
/* sense connected devices on 30x bridge */
-static void sis_sense_30x()
+static void sis_sense_30x(void)
{
unsigned char backupP4_0d, backupP2_00, biosflag;
unsigned char testsvhs_tempbl, testsvhs_tempbh;
@@ -356,7 +356,7 @@ static void sis_sense_30x()
}
-static void sis_detect_crt1()
+static void sis_detect_crt1(void)
{
unsigned char CR32;
unsigned char CRT1Detected = 0;
@@ -394,7 +394,7 @@ static void sis_detect_crt1()
}
-static void sis_detect_lcd()
+static void sis_detect_lcd(void)
{
unsigned char CR32, CR36, CR37;
@@ -413,7 +413,7 @@ static void sis_detect_lcd()
}
-static void sis_detect_tv()
+static void sis_detect_tv(void)
{
unsigned char SR16, SR38, CR32, CR38 = 0, CR79;
int temp = 0;
@@ -517,7 +517,7 @@ static void sis_detect_tv()
}
-static void sis_detect_crt2()
+static void sis_detect_crt2(void)
{
unsigned char CR32;
@@ -563,7 +563,7 @@ static void sis_detect_crt2()
/* Preinit: detect video bridge and sense connected devs */
-static void sis_detect_video_bridge()
+static void sis_detect_video_bridge(void)
{
int temp, temp1, temp2;
@@ -708,7 +708,7 @@ static void sis_detect_video_bridge()
/* detect video bridge type and sense connected devices */
-void sis_init_video_bridge()
+void sis_init_video_bridge(void)
{
sis_detect_video_bridge();
diff --git a/vidix/drivers/sis_vid.c b/vidix/drivers/sis_vid.c
index 2562ed7148..535a299581 100644
--- a/vidix/drivers/sis_vid.c
+++ b/vidix/drivers/sis_vid.c
@@ -167,17 +167,17 @@ static unsigned short sis_card_ids[] = {
/** function declarations **/
-extern void sis_init_video_bridge();
+extern void sis_init_video_bridge(void);
static void set_overlay(SISOverlayPtr pOverlay, int index);
-static void close_overlay();
+static void close_overlay(void);
static void calc_scale_factor(SISOverlayPtr pOverlay,
int index, int iscrt2);
static void set_line_buf_size(SISOverlayPtr pOverlay);
static void merge_line_buf(int enable);
static void set_format(SISOverlayPtr pOverlay);
-static void set_colorkey();
+static void set_colorkey(void);
static void set_brightness(uint8_t brightness);
static void set_contrast(uint8_t contrast);
@@ -219,13 +219,13 @@ static void setsrregmask(uint8_t reg, uint8_t data, uint8_t mask)
}
/* vblank checking*/
-static uint8_t vblank_active_CRT1()
+static uint8_t vblank_active_CRT1(void)
{
/* this may be too simplistic? */
return (inSISREG(SISINPSTAT) & 0x08);
}
-static uint8_t vblank_active_CRT2()
+static uint8_t vblank_active_CRT2(void)
{
uint8_t ret;
if (sis_vga_engine == SIS_315_VGA) {
@@ -445,7 +445,7 @@ int vixQueryFourcc(vidix_fourcc_t * to)
return ENOSYS;
}
-static int bridge_in_slave_mode()
+static int bridge_in_slave_mode(void)
{
unsigned char usScratchP1_00;
@@ -465,7 +465,7 @@ static int bridge_in_slave_mode()
/* This does not handle X dual head mode, since 1) vidix doesn't support it
and 2) it doesn't make sense for other gfx drivers */
-static void set_dispmode()
+static void set_dispmode(void)
{
sis_bridge_is_slave = 0;
@@ -489,7 +489,7 @@ static void set_dispmode()
}
}
-static void set_disptype_regs()
+static void set_disptype_regs(void)
{
switch (sis_displaymode) {
case DISPMODE_SINGLE1: /* TW: CRT1 only */
@@ -527,7 +527,7 @@ static void set_disptype_regs()
}
}
-static void init_overlay()
+static void init_overlay(void)
{
/* Initialize first overlay (CRT1) */
@@ -1154,7 +1154,7 @@ static void set_overlay(SISOverlayPtr pOverlay, int index)
/* TW: Overlay MUST NOT be switched off while beam is over it */
-static void close_overlay()
+static void close_overlay(void)
{
uint32_t watchdog;
@@ -1493,7 +1493,7 @@ static void set_format(SISOverlayPtr pOverlay)
setvideoregmask(Index_VI_Control_Misc0, fmt, 0x7c);
}
-static void set_colorkey()
+static void set_colorkey(void)
{
uint8_t r, g, b;