summaryrefslogtreecommitdiffstats
path: root/TOOLS/fastmemcpybench.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-05 14:48:03 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-05 14:48:03 +0000
commit824abb5a65c1de35259818956e22a24c33f318b4 (patch)
treea81ec268f4afe16439d2ec2af0bf2d2b504c321b /TOOLS/fastmemcpybench.c
parent24617c7318bb4f408a6152b3885d60bee9370fc4 (diff)
downloadmpv-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 'TOOLS/fastmemcpybench.c')
-rw-r--r--TOOLS/fastmemcpybench.c9
1 files changed, 6 insertions, 3 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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;