From 824abb5a65c1de35259818956e22a24c33f318b4 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 5 Jan 2009 14:48:03 +0000 Subject: Add missing 'void' keyword to parameterless function declarations. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/fastmemcpybench.c | 9 ++++++--- TOOLS/realcodecs/14_4.c | 8 ++++---- TOOLS/realcodecs/28_8.c | 8 ++++---- TOOLS/realcodecs/cook.c | 8 ++++---- TOOLS/realcodecs/drv2.c | 8 ++++---- TOOLS/realcodecs/drv3.c | 8 ++++---- TOOLS/realcodecs/drv4.c | 8 ++++---- TOOLS/realcodecs/ra.c | 8 ++++---- TOOLS/realcodecs/rv30.c | 8 ++++---- TOOLS/realcodecs/sipr.c | 8 ++++---- gui/mplayer/gtk/opts.c | 10 +++++----- libmpdemux/demux_xmms.c | 8 ++++---- libvo/gl_common.c | 2 +- libvo/mga_common.c | 2 +- libvo/vo_gif89a.c | 2 +- libvo/vo_s3fb.c | 10 +++++----- libvo/vo_xvmc.c | 14 +++++++------- libvo/vo_xvr100.c | 8 ++++---- loader/dshow/libwin32.h | 2 +- mp3lib/sr1.c | 4 ++-- mp3lib/test.c | 2 +- osdep/getch2-win.c | 8 +++++--- osdep/timer-win2.c | 12 ++++++++---- stream/cdinfo.c | 2 +- vidix/mga_vid.c | 5 +++-- vidix/sysdep/libdha_os2.c | 4 ++-- vidix/sysdep/libdha_win32.c | 2 +- 27 files changed, 94 insertions(+), 84 deletions(-) diff --git a/TOOLS/fastmemcpybench.c b/TOOLS/fastmemcpybench.c index 35f7914285..2d8ac2b03d 100644 --- a/TOOLS/fastmemcpybench.c +++ b/TOOLS/fastmemcpybench.c @@ -7,6 +7,8 @@ tested it. */ +/* According to Uoti this code is broken. */ + #include #include #include @@ -28,8 +30,8 @@ static mga_vid_config_t mga_vid_config; static unsigned char* frame=NULL; static int f; -static int mga_init(){ - +static int mga_init(void) +{ f = open("/dev/mga_vid",O_RDWR); if(f == -1) { @@ -74,7 +76,8 @@ static int mga_init(){ #endif // Returns current time in microseconds -static unsigned int GetTimer(){ +static unsigned int GetTimer(void) +{ struct timeval tv; struct timezone tz; // float s; diff --git a/TOOLS/realcodecs/14_4.c b/TOOLS/realcodecs/14_4.c index 61e59c7c58..6def97af46 100644 --- a/TOOLS/realcodecs/14_4.c +++ b/TOOLS/realcodecs/14_4.c @@ -44,7 +44,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -100,7 +100,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -115,11 +115,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/28_8.c b/TOOLS/realcodecs/28_8.c index 5c1735cde3..6634c4afde 100644 --- a/TOOLS/realcodecs/28_8.c +++ b/TOOLS/realcodecs/28_8.c @@ -44,7 +44,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -100,7 +100,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -115,11 +115,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/cook.c b/TOOLS/realcodecs/cook.c index 5b0f54b913..8a8310d72e 100644 --- a/TOOLS/realcodecs/cook.c +++ b/TOOLS/realcodecs/cook.c @@ -56,7 +56,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -147,7 +147,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -162,11 +162,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/drv2.c b/TOOLS/realcodecs/drv2.c index 8c09e25784..c4de76f1f2 100644 --- a/TOOLS/realcodecs/drv2.c +++ b/TOOLS/realcodecs/drv2.c @@ -48,7 +48,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -124,7 +124,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -139,11 +139,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/drv3.c b/TOOLS/realcodecs/drv3.c index 889d5f724e..5d03a023d5 100644 --- a/TOOLS/realcodecs/drv3.c +++ b/TOOLS/realcodecs/drv3.c @@ -48,7 +48,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -124,7 +124,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -139,11 +139,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/drv4.c b/TOOLS/realcodecs/drv4.c index 231ba2b3e7..63eab69a21 100644 --- a/TOOLS/realcodecs/drv4.c +++ b/TOOLS/realcodecs/drv4.c @@ -50,7 +50,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -96,7 +96,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -111,11 +111,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/ra.c b/TOOLS/realcodecs/ra.c index dfedd3d6a6..816a6c1802 100644 --- a/TOOLS/realcodecs/ra.c +++ b/TOOLS/realcodecs/ra.c @@ -55,7 +55,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -146,7 +146,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -161,11 +161,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/rv30.c b/TOOLS/realcodecs/rv30.c index d1a3278b80..a74f2e22ab 100644 --- a/TOOLS/realcodecs/rv30.c +++ b/TOOLS/realcodecs/rv30.c @@ -58,7 +58,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -175,7 +175,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -190,11 +190,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/TOOLS/realcodecs/sipr.c b/TOOLS/realcodecs/sipr.c index ee9990d399..d14996aa2e 100644 --- a/TOOLS/realcodecs/sipr.c +++ b/TOOLS/realcodecs/sipr.c @@ -73,7 +73,7 @@ int b_dlOpened=0; void *handle=NULL; /* exits program when failure */ -void loadSyms() { +void loadSyms(void) { fputs("loadSyms()\n", stderr); if (!b_dlOpened) { char *error; @@ -169,7 +169,7 @@ void loadSyms() { } } -void closeDll() { +void closeDll(void) { if (handle) { b_dlOpened=0; dlclose(handle); @@ -184,11 +184,11 @@ void _init(void) { struct timezone tz; struct timeval tv1, tv2; -void tic() { +void tic(void) { gettimeofday(&tv1, &tz); } -void toc() { +void toc(void) { long secs, usecs; gettimeofday(&tv2, &tz); secs=tv2.tv_sec-tv1.tv_sec; diff --git a/gui/mplayer/gtk/opts.c b/gui/mplayer/gtk/opts.c index 2a638b3f55..2fe355c5e1 100644 --- a/gui/mplayer/gtk/opts.c +++ b/gui/mplayer/gtk/opts.c @@ -182,8 +182,8 @@ static int old_video_driver = 0; void ShowDXR3Config( void ); void HideDXR3Config( void ); #endif - void ShowAudioConfig(); - void HideAudioConfig(); + void ShowAudioConfig( void ); + void HideAudioConfig( void ); static gboolean prHScaler( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ); static void prToggled( GtkToggleButton * togglebutton,gpointer user_data ); @@ -1499,7 +1499,7 @@ static GtkWidget *CBAudioMixerChannel; static GtkWidget *BAudioOk; static GtkWidget *BAudioCancel; -void ShowAudioConfig() { +void ShowAudioConfig( void ) { if (AudioConfig) gtkActive(AudioConfig); else AudioConfig = create_AudioConfig(); @@ -1532,7 +1532,7 @@ void ShowAudioConfig() { gtkSetLayer(AudioConfig); } -void HideAudioConfig() { +void HideAudioConfig( void ) { if (!AudioConfig) return; gtk_widget_hide(AudioConfig); gtk_widget_destroy(AudioConfig); @@ -1580,7 +1580,7 @@ static void audioButton(GtkButton *button, gpointer user_data) { } } -GtkWidget *create_AudioConfig() { +GtkWidget *create_AudioConfig( void ) { GList *items = NULL; GtkWidget *vbox; GtkWidget *table; diff --git a/libmpdemux/demux_xmms.c b/libmpdemux/demux_xmms.c index c6bf5eae90..b7b2e72d66 100644 --- a/libmpdemux/demux_xmms.c +++ b/libmpdemux/demux_xmms.c @@ -166,11 +166,11 @@ static InputPlugin* input_plugins[100]; static int no_plugins=0; /* Dummy functions */ -static InputVisType input_get_vis_type(){return 0;} +static InputVisType input_get_vis_type(void){return 0;} static void input_add_vis_pcm(int time, AFormat fmt, int nch, int length, void *ptr){} static void input_set_info_text(char * text){} -char *xmms_get_gentitle_format(){ return ""; } +char *xmms_get_gentitle_format(void){ return ""; } /* Dummy functions END*/ static void input_set_info(char* title,int length, int rate, int freq, int nch) @@ -212,7 +212,7 @@ static void init_plugins_from_dir(const char *plugin_dir){ closedir(dir); } -static void init_plugins(){ +static void init_plugins(void) { char *home; no_plugins=0; @@ -227,7 +227,7 @@ static void init_plugins(){ init_plugins_from_dir(XMMS_INPUT_PLUGIN_DIR); } -static void cleanup_plugins(){ +static void cleanup_plugins(void) { while(no_plugins>0){ --no_plugins; mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_MPDEMUX_XMMS_ClosingPlugin, 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 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; diff --git a/loader/dshow/libwin32.h b/loader/dshow/libwin32.h index 7570072649..509941432b 100644 --- a/loader/dshow/libwin32.h +++ b/loader/dshow/libwin32.h @@ -17,7 +17,7 @@ typedef uint32_t fourcc_t; typedef struct FatalError { FatalError(); - void PrintAll() {} + void PrintAll(void) {} }FatalError; */ diff --git a/mp3lib/sr1.c b/mp3lib/sr1.c index c5a0a1b9e7..d31998f586 100644 --- a/mp3lib/sr1.c +++ b/mp3lib/sr1.c @@ -496,7 +496,7 @@ void MP3_Init(void){ #if 0 -void MP3_Close(){ +void MP3_Close(void){ MP3_eof=1; if(mp3_file) fclose(mp3_file); mp3_file=NULL; @@ -565,7 +565,7 @@ void MP3_PrintHeader(void){ #include "genre.h" // Read & print ID3 TAG. Do not call when playing!!! returns filesize. -int MP3_PrintTAG(){ +int MP3_PrintTAG(void){ struct id3tag { char tag[3]; char title[30]; diff --git a/mp3lib/test.c b/mp3lib/test.c index c9613ee99b..ea0169185b 100644 --- a/mp3lib/test.c +++ b/mp3lib/test.c @@ -11,7 +11,7 @@ #include "mp3lib/mp3.h" #include "cpudetect.h" -static inline unsigned int GetTimer(){ +static inline unsigned int GetTimer(void){ struct timeval tv; struct timezone tz; // float s; diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c index 83d502f7c7..70608ea366 100644 --- a/osdep/getch2-win.c +++ b/osdep/getch2-win.c @@ -29,7 +29,7 @@ int screen_width=80; int screen_height=24; char * erase_to_end_of_line = NULL; -void get_screen_size(){ +void get_screen_size(void){ } static HANDLE stdin; @@ -126,7 +126,8 @@ void getch2(void) mplayer_put_key(r); } -void getch2_enable(){ +void getch2_enable(void) +{ DWORD retval; stdin = GetStdHandle(STD_INPUT_HANDLE); if(!GetNumberOfConsoleInputEvents(stdin,&retval)) @@ -137,7 +138,8 @@ void getch2_enable(){ else getch2_status=1; } -void getch2_disable(){ +void getch2_disable(void) +{ if(!getch2_status) return; // already disabled / never enabled getch2_status=0; } diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c index 2f0b5c3075..fabac2e81f 100644 --- a/osdep/timer-win2.c +++ b/osdep/timer-win2.c @@ -7,12 +7,14 @@ const char *timer_name = "Windows native"; // Returns current time in microseconds -unsigned int GetTimer(){ +unsigned int GetTimer(void) +{ return timeGetTime() * 1000; } // Returns current time in milliseconds -unsigned int GetTimerMS(){ +unsigned int GetTimerMS(voi) +{ return timeGetTime() ; } @@ -27,7 +29,8 @@ int usec_sleep(int usec_delay){ static DWORD RelativeTime = 0; -float GetRelativeTime(){ +float GetRelativeTime(void) +{ DWORD t, r; t = GetTimer(); r = t - RelativeTime; @@ -35,6 +38,7 @@ float GetRelativeTime(){ return (float) r *0.000001F; } -void InitTimer(){ +void InitTimer(void) +{ GetRelativeTime(); } diff --git a/stream/cdinfo.c b/stream/cdinfo.c index c3874771aa..4f576c98b9 100644 --- a/stream/cdinfo.c +++ b/stream/cdinfo.c @@ -20,7 +20,7 @@ *******************************************************************************************************************/ cd_info_t* -cd_info_new() { +cd_info_new(void) { cd_info_t *cd_info = NULL; cd_info = malloc(sizeof(cd_info_t)); diff --git a/vidix/mga_vid.c b/vidix/mga_vid.c index fd414fa3bb..cd0fe28fd4 100644 --- a/vidix/mga_vid.c +++ b/vidix/mga_vid.c @@ -566,7 +566,8 @@ if(!restore){ } #ifdef MGA_ALLOW_IRQ -static void enable_irq(){ +static void enable_irq(void) +{ long int cc; cc = readl(mga_mmio_base + IEN); @@ -582,7 +583,7 @@ static void enable_irq(){ return; } -static void disable_irq() +static void disable_irq(void) { writeb( 0x11, mga_mmio_base + CRTCX); writeb(0x20, mga_mmio_base + CRTCD ); /* clear 0, enable off */ diff --git a/vidix/sysdep/libdha_os2.c b/vidix/sysdep/libdha_os2.c index 041f6be71c..14ba370b42 100644 --- a/vidix/sysdep/libdha_os2.c +++ b/vidix/sysdep/libdha_os2.c @@ -45,7 +45,7 @@ static HFILE mapdev = -1; static ULONG stored_virt_addr; static char* mappath = "\\DEV\\PMAP$"; -static HFILE open_mmap() +static HFILE open_mmap(void) { APIRET rc; ULONG action; @@ -62,7 +62,7 @@ static HFILE open_mmap() return mapdev; } -static void close_mmap() +static void close_mmap(void) { if (mapdev != -1) DosClose(mapdev); diff --git a/vidix/sysdep/libdha_win32.c b/vidix/sysdep/libdha_win32.c index 4f6075194f..50c037aa2b 100644 --- a/vidix/sysdep/libdha_win32.c +++ b/vidix/sysdep/libdha_win32.c @@ -33,7 +33,7 @@ typedef struct MapDevRequest #define METHOD_NEITHER 3 -int IsWinNT(){ +int IsWinNT(void) { OSVERSIONINFO OSVersionInfo; OSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&OSVersionInfo); -- cgit v1.2.3