diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-01-05 14:48:03 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-01-05 14:48:03 +0000 |
commit | 824abb5a65c1de35259818956e22a24c33f318b4 (patch) | |
tree | a81ec268f4afe16439d2ec2af0bf2d2b504c321b /libvo | |
parent | 24617c7318bb4f408a6152b3885d60bee9370fc4 (diff) | |
download | mpv-824abb5a65c1de35259818956e22a24c33f318b4.tar.bz2 mpv-824abb5a65c1de35259818956e22a24c33f318b4.tar.xz |
Add missing 'void' keyword to parameterless function declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/gl_common.c | 2 | ||||
-rw-r--r-- | libvo/mga_common.c | 2 | ||||
-rw-r--r-- | libvo/vo_gif89a.c | 2 | ||||
-rw-r--r-- | libvo/vo_s3fb.c | 10 | ||||
-rw-r--r-- | libvo/vo_xvmc.c | 14 | ||||
-rw-r--r-- | libvo/vo_xvr100.c | 8 |
6 files changed, 19 insertions, 19 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index fd85c3d6bf..596f99c0b9 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1522,7 +1522,7 @@ void releaseGlContext(int *vinfo, HGLRC *context) { *context = 0; } -void swapGlBuffers() { +void swapGlBuffers(void) { HDC vo_hdc = GetDC(vo_w32_window); SwapBuffers(vo_hdc); ReleaseDC(vo_w32_window, vo_hdc); diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 6d222a215f..3bc613930f 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -208,7 +208,7 @@ query_format(uint32_t format) } #ifndef VO_XMGA -static void mga_fullscreen() +static void mga_fullscreen(void) { uint32_t w,h; if ( !vo_fs ) { diff --git a/libvo/vo_gif89a.c b/libvo/vo_gif89a.c index 5e59a3dcef..b7a9894591 100644 --- a/libvo/vo_gif89a.c +++ b/libvo/vo_gif89a.c @@ -244,7 +244,7 @@ static int config(uint32_t s_width, uint32_t s_height, uint32_t d_width, } // we do not draw osd. -void draw_osd() {} +void draw_osd(void) {} // we do not handle events. static void check_events(void) {} diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c index f321539202..930dcc80c4 100644 --- a/libvo/vo_s3fb.c +++ b/libvo/vo_s3fb.c @@ -71,7 +71,7 @@ static uint32_t in_width, in_height, in_format, in_depth, in_s3_format, static char *inpage, *inpage0, *smem = NULL; static void (*alpha_func)(); -static void clear_screen(); +static void clear_screen(void); /* streams registers */ #define PSTREAM_CONTROL_REG 0x8180 @@ -116,7 +116,7 @@ void writecrtc(int reg, int value) { } // enable S3 registers -int enable() { +int enable(void) { int fd; if (v) @@ -148,7 +148,7 @@ int enable() { return 0; } -void disable() { +void disable(void) { if (v) { writecrtc(0x53, v->cr53); writecrtc(0x39, v->cr39); @@ -227,7 +227,7 @@ int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y, int dst_w, in return offset; } -void yuv_off() { +void yuv_off(void) { writecrtc(0x67, readcrtc(0x67) & ~0xc); memset(v->mmio + 0x8180, 0, 0x80); OUTREG(0x81b8, 0x900); @@ -328,7 +328,7 @@ static void uninit(void) } } -static void clear_screen() +static void clear_screen(void) { if (inpage0) { int n; diff --git a/libvo/vo_xvmc.c b/libvo/vo_xvmc.c index 6e63868942..a0f01113e7 100644 --- a/libvo/vo_xvmc.c +++ b/libvo/vo_xvmc.c @@ -117,8 +117,8 @@ static const struct{ static void xvmc_free(void); static void xvmc_clean_surfaces(void); -static int count_free_surfaces(); -static struct xvmc_render_state * find_free_surface(); +static int count_free_surfaces(void); +static struct xvmc_render_state * find_free_surface(void); static const vo_info_t info = { "XVideo Motion Compensation", @@ -175,7 +175,7 @@ static void allocate_xvimage(int xvimage_width,int xvimage_height,int xv_format) return; } -static void deallocate_xvimage() +static void deallocate_xvimage(void) { #ifdef HAVE_SHM if ( Shmem_Flag ) @@ -699,7 +699,7 @@ static int draw_frame(uint8_t *srcp[]){ assert(0); } -static void init_osd_yuv_pal(){ +static void init_osd_yuv_pal(void) { char * palette; int rez; int i,j; @@ -745,7 +745,7 @@ int rez; printf("vo_xvmc: XvMCClearSubpicture failed!\n"); } -static void OSD_init(){ +static void OSD_init(void) { unsigned short osd_height, osd_width; int rez; @@ -1201,7 +1201,7 @@ int stat; src_rndr->state &= ~MP_XVMC_STATE_OSD_SOURCE; } } -static int count_free_surfaces(){ +static int count_free_surfaces(void) { int i,num; num=0; for(i=0; i<number_of_surfaces; i++){ @@ -1212,7 +1212,7 @@ int i,num; return num; } -static struct xvmc_render_state * find_free_surface(){ +static struct xvmc_render_state * find_free_surface(void) { int i,t; int stat; struct xvmc_render_state * visible_rndr; diff --git a/libvo/vo_xvr100.c b/libvo/vo_xvr100.c index 29495170dc..476744729c 100644 --- a/libvo/vo_xvr100.c +++ b/libvo/vo_xvr100.c @@ -135,7 +135,7 @@ static uint32_t pfb_colorkey; -void pfb_overlay_on() { +void pfb_overlay_on(void) { int h_inc, h_step, ecp_div; pfb_vregs[PFB_CLOCK_CNTL_INDEX] = (pfb_vregs[PFB_CLOCK_CNTL_INDEX] & ~0x0000003f) | 0x00000008; @@ -192,11 +192,11 @@ void pfb_overlay_on() { pfb_vregs[PFB_OV0_AUTO_FLIP_CNTL] = PFB_OV0_AUTO_FLIP_BUF0; } -void pfb_overlay_off() { +void pfb_overlay_off(void) { pfb_vregs[PFB_OV0_SCALE_CNTL] = 0; } -void center_overlay() { +void center_overlay(void) { if (pfb_xres > pfb_dstwidth) { pfb_wx0 = (pfb_xres - pfb_dstwidth) / 2; pfb_wx1 = pfb_wx0 + pfb_dstwidth; @@ -321,7 +321,7 @@ static void uninit(void) munmap(pfb_vregs, PFB_REGS_MMAPLEN); } -static uint32_t pfb_fullscreen() { +static uint32_t pfb_fullscreen(void) { if (!pfb_fs) { aspect(&pfb_dstwidth,&pfb_dstheight, A_ZOOM); pfb_fs = 1; |