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 ++++---- 10 files changed, 42 insertions(+), 39 deletions(-) (limited to 'TOOLS') 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; -- cgit v1.2.3